diff options
| author | Emirald Mateli <[email protected]> | 2017-09-17 11:07:44 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2017-09-17 11:12:46 +0200 |
| commit | 478f404b8abf924a0e3e21bbf1dd49aefbe47672 (patch) | |
| tree | a8321872b1126a91f873e40ccf539b2419b471dc /src/views/renamedialog.h | |
| parent | cdd002c57cde0480e6e02c7942e9b92af9d0a3e7 (diff) | |
Keep renamed file(s) in view
When renaming a file, if its new name causes it to scroll out of view,
Dolphin will not scroll to the location of the new file.
This patch aims to address that. This affects all view modes.
CCBUG: 354330
Test Plan:
1. Have many files in a directory (or several files, just zoom in a lot)
2. Rename a file so that it will move out of view
Differential Revision: https://phabricator.kde.org/D6312
Diffstat (limited to 'src/views/renamedialog.h')
| -rw-r--r-- | src/views/renamedialog.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/views/renamedialog.h b/src/views/renamedialog.h index 3964c0a5c..7ead0ca9f 100644 --- a/src/views/renamedialog.h +++ b/src/views/renamedialog.h @@ -41,6 +41,9 @@ public: explicit RenameDialog(QWidget* parent, const KFileItemList& items); virtual ~RenameDialog(); +signals: + void renamingFinished(const QList<QUrl>& urls); + private slots: void slotAccepted(); void slotTextChanged(const QString& newName); @@ -63,6 +66,7 @@ private: private: bool m_renameOneItem; + QList<QUrl> m_renamedItems; QString m_newName; QLineEdit* m_lineEdit; KFileItemList m_items; |
