]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/selectionmanager.h
* Use Nepomuk for getting the meta data instead of KFileMetaInfo.
[dolphin.git] / src / selectionmanager.h
index c263da3ea6a6be15e5f3a625c30315f7a4caf7c3..080a94267f06a4cad5d61fe32f7534f358d2a9b8 100644 (file)
@@ -28,10 +28,11 @@ class DolphinSortFilterProxyModel;
 class QAbstractItemView;
 class QModelIndex;
 class QAbstractButton;
+class QItemSelection;
 class SelectionToggle;
 
 /**
- * @brief Allows to select and deselect items for the single-click mode.
+ * @brief Allows to select and deselect items for item views.
  *
  * Whenever an item is hovered by the mouse, a toggle button is shown
  * which allows to select/deselect the current item.
@@ -60,6 +61,7 @@ private slots:
     void slotViewportEntered();
     void setItemSelected(bool selected);
     void slotRowsRemoved(const QModelIndex& parent, int start, int end);
+    void slotSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
 
 private:
     KUrl urlForIndex(const QModelIndex& index) const;
@@ -68,6 +70,7 @@ private:
 private:
     QAbstractItemView* m_view;
     SelectionToggle* m_toggle;
+    bool m_connected;
 };
 
 #endif