From 98363db9134fc42e67f6aa2434dc5a03516ad1a6 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 11 May 2009 18:07:05 +0000 Subject: select items after they have been copied/moved by a drag & drop operation svn path=/trunk/KDE/kdebase/apps/; revision=966685 --- src/dolphinview.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 122e0e1f5..24831e03b 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -36,6 +36,7 @@ #include #include #include +#include #include typedef KIO::FileUndoManager::CommandType CommandType; @@ -747,6 +748,14 @@ private: */ QMimeData* selectionMimeData() const; + /** + * Is invoked after a paste operation or a drag & drop + * operation and adds the filenames of all URLs from \a mimeData to + * m_newFileNames. This allows to select all newly added + * items in slotDirListerCompleted(). + */ + void addNewFileNames(const QMimeData* mimeData); + private: bool m_active : 1; bool m_showPreview : 1; @@ -756,7 +765,6 @@ private: bool m_isContextMenuOpen : 1; // TODO: workaround for Qt-issue 207192 bool m_ignoreViewProperties : 1; bool m_assureVisibleCurrentIndex : 1; - bool m_selectClipboardItems : 1; Mode m_mode; @@ -780,7 +788,14 @@ private: KUrl m_rootUrl; KUrl m_currentItemUrl; KUrl m_createdItemUrl; // URL for a new item that got created by the "Create New..." menu - KFileItemList m_selectedItems; //this is used for making the View to remember selections after F5 + KFileItemList m_selectedItems; // this is used for making the View to remember selections after F5 + + /** + * Remembers the filenames that have been added by a paste operation + * or a drag & drop operation. Allows to select the items in + * slotDirListerCompleted(). + */ + QSet m_newFileNames; QAbstractItemView* m_expandedDragSource; }; -- cgit v1.3