]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kcategorizedview_p.h
Factorize all the view-related action handling to DolphinViewActionHandler, to remove...
[dolphin.git] / src / kcategorizedview_p.h
index b9587f4ab176a1f24b600c4ca56ab8de07f18cfa..a18854ba3c9dd8ee07c16347b3902a415e03ee98 100644 (file)
@@ -112,6 +112,8 @@ public:
       */
     void drawDraggedItems();
 
+    void layoutChanged(bool forceItemReload = false);
+
 
     // Attributes
 
@@ -128,14 +130,13 @@ public:
 
     // Behavior data
     bool mouseButtonPressed;
+    bool rightMouseButtonPressed;
     bool isDragging;
     bool dragLeftViewport;
     QModelIndex hovered;
     QString hoveredCategory;
     QPoint initialPressPosition;
     QPoint mousePosition;
-    QItemSelection lastSelection;
-    QModelIndex currentViewIndex;
     int forcedSelectionPosition;
 
     // Cache data
@@ -148,7 +149,12 @@ public:
     QStringList categories;
     QModelIndexList intersectedIndexes;
     QRect lastDraggedItemsRect;
-    QRect lastSelectionRect;
+    int modelSortRole;
+    int modelSortColumn;
+    int modelLastRowCount;
+    bool modelCategorized;
+    Qt::SortOrder modelSortOrder;
+    QItemSelection lastSelection;
 
     // Attributes for speed reasons
     KCategorizedSortFilterProxyModel *proxyModel;