]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/selectionmanager.h
Fix forward declation
[dolphin.git] / src / selectionmanager.h
index 04e6e29c160ce9e9edd17aed5ec33df89f3c738f..c2fcc88b4cf85924abc36daac338ebe3f4070d4e 100644 (file)
 
 #include <QObject>
 
-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,14 +59,16 @@ 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:
-    KFileItem itemForIndex(const QModelIndex& index) const;
-    const QModelIndex indexForItem(const KFileItem& item) const;
+    KUrl urlForIndex(const QModelIndex& index) const;
+    const QModelIndex indexForUrl(const KUrl& url) const;
 
 private:
     QAbstractItemView* m_view;
     SelectionToggle* m_toggle;
+    bool m_connected;
 };
 
 #endif