]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kitemlistcontroller.h
Provide basic rubberband functionality
[dolphin.git] / src / kitemviews / kitemlistcontroller.h
index 86f2b4ea62dd309f152868506f12acf2cb5e43a4..c4406a972c7da829c7fa6679a573c2b6e7a67ad0 100644 (file)
@@ -28,6 +28,7 @@
 #include <QObject>
 
 class KItemModelBase;
+class KItemListRubberBandManager;
 class KItemListSelectionManager;
 class KItemListView;
 class QGraphicsSceneHoverEvent;
@@ -101,11 +102,27 @@ public:
 
 signals:
     void itemClicked(int index, Qt::MouseButton button);
+
+    /**
+     * Is emitted if the item with the index \p index gets hovered.
+     */
+    void itemHovered(int index);
+
+    /**
+     * Is emitted if the item with the index \p index gets unhovered.
+     * It is assured that the signal itemHovered() for this index
+     * has been emitted before.
+     */
+    void itemUnhovered(int index);
+
     void itemExpansionToggleClicked(int index);
 
     void modelChanged(KItemModelBase* current, KItemModelBase* previous);
     void viewChanged(KItemListView* current, KItemListView* previous);
 
+private slots:
+    void slotViewOffsetChanged(qreal current, qreal previous);
+
 private:
     SelectionBehavior m_selectionBehavior;
     KItemModelBase* m_model;