┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-05-11 18:07:05 +0000
committerPeter Penz <[email protected]>2009-05-11 18:07:05 +0000
commit98363db9134fc42e67f6aa2434dc5a03516ad1a6 (patch)
treecc12af9599e4282fd66916537e5e20ade7bf0a04 /src/dolphinview.h
parent883e2cb0637cf198b2bb5227bd6b13fe26e64e6e (diff)
select items after they have been copied/moved by a drag & drop operation
svn path=/trunk/KDE/kdebase/apps/; revision=966685
Diffstat (limited to 'src/dolphinview.h')
-rw-r--r--src/dolphinview.h19
1 files changed, 17 insertions, 2 deletions
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 <QKeyEvent>
#include <QLinkedList>
#include <QListView>
+#include <QSet>
#include <QWidget>
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<QString> m_newFileNames;
QAbstractItemView* m_expandedDragSource;
};