#ifndef KCATEGORIZEDVIEW_P_H
#define KCATEGORIZEDVIEW_P_H
-class DolphinSortFilterProxyModel;
+class KCategorizedSortFilterProxyModel;
+class KCategoryDrawer;
/**
* @internal
// Basic data
KCategorizedView *listView;
- KItemCategorizer *itemCategorizer;
+ KCategoryDrawer *categoryDrawer;
QSize biggestItemSize;
// Behavior data
// Cache data
// We cannot merge some of them into structs because it would affect
// performance
- QHash<QModelIndex, struct ElementInfo> elementsInfo; // in source model
- QHash<QModelIndex, QRect> elementsPosition; // in source model
- QHash<QModelIndex, QModelIndex> elementDictionary; // mapped indexes
- QHash<QModelIndex, QModelIndex> invertedElementDictionary; // mapped indexes
+ QHash<int, struct ElementInfo> elementsInfo;
+ QHash<int, QRect> elementsPosition;
QHash<QString, QModelIndexList> categoriesIndexes;
QHash<QString, QRect> categoriesPosition;
QStringList categories;
QRect lastSelectionRect;
// Attributes for speed reasons
- DolphinSortFilterProxyModel *proxyModel;
- QModelIndexList sourceModelIndexList; // in source model
+ KCategorizedSortFilterProxyModel *proxyModel;
+ QModelIndexList modelIndexList;
};
#endif // KCATEGORIZEDVIEW_P_H