X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/b607d3cc4bbce0ef496730b25dfe2ec7bf00ab7a..d6488887ecf69d7f192b94de8dce34fae0b7eb76:/src/kcategorizedview_p.h diff --git a/src/kcategorizedview_p.h b/src/kcategorizedview_p.h index 690db5ba9..aa55cda75 100644 --- a/src/kcategorizedview_p.h +++ b/src/kcategorizedview_p.h @@ -1,6 +1,6 @@ /** * This file is part of the KDE project - * Copyright (C) 2007 Rafael Fernández López + * Copyright (C) 2007 Rafael Fernández López * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,7 +21,8 @@ #ifndef KCATEGORIZEDVIEW_P_H #define KCATEGORIZEDVIEW_P_H -class DolphinSortFilterProxyModel; +class KCategorizedSortFilterProxyModel; +class KCategoryDrawer; /** * @internal @@ -111,6 +112,8 @@ public: */ void drawDraggedItems(); + void layoutChanged(bool forceItemReload = false); + // Attributes @@ -122,7 +125,7 @@ public: // Basic data KCategorizedView *listView; - KItemCategorizer *itemCategorizer; + KCategoryDrawer *categoryDrawer; QSize biggestItemSize; // Behavior data @@ -140,20 +143,23 @@ public: // Cache data // We cannot merge some of them into structs because it would affect // performance - QHash elementsInfo; // in source model - QHash elementsPosition; // in source model - QHash elementDictionary; // mapped indexes - QHash invertedElementDictionary; // mapped indexes + QHash elementsInfo; + QHash elementsPosition; QHash categoriesIndexes; QHash categoriesPosition; QStringList categories; QModelIndexList intersectedIndexes; QRect lastDraggedItemsRect; QRect lastSelectionRect; + int modelSortRole; + int modelSortColumn; + int modelLastRowCount; + bool modelCategorized; + Qt::SortOrder modelSortOrder; // Attributes for speed reasons - DolphinSortFilterProxyModel *proxyModel; - QModelIndexList sourceModelIndexList; // in source model + KCategorizedSortFilterProxyModel *proxyModel; + QModelIndexList modelIndexList; }; #endif // KCATEGORIZEDVIEW_P_H