┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kcategorizedview.h
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2007-09-17 04:02:17 +0000
committerRafael Fernández López <[email protected]>2007-09-17 04:02:17 +0000
commitc8072005fada01d772595ec64adca449134f421e (patch)
tree2bbcad6b43218569c813ef888bec3ad009335b69 /src/kcategorizedview.h
parent231436769d037a83afbf57fedea167b6fb9a5ad4 (diff)
Create the new architecture for KCategorizedView. Now DolphinModel is created, inheriting KDirModel for returning valid data for the role of the category of
an item. DolphinSortFilterProxyModel implements now methods lessThanCategoryMethod and lessThanGeneralMethod from KCategorizedSortFilterProxyModel. The only thing that needs to be adapted is the keyboard navigation on the KCategorizedView. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=713319
Diffstat (limited to 'src/kcategorizedview.h')
-rw-r--r--src/kcategorizedview.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/kcategorizedview.h b/src/kcategorizedview.h
index 8741a6654..e0fbec9d5 100644
--- a/src/kcategorizedview.h
+++ b/src/kcategorizedview.h
@@ -25,7 +25,7 @@
#include <libdolphin_export.h>
-class KItemCategorizer;
+class KCategoryDrawer;
/**
* @short Item view for listing items
@@ -50,18 +50,13 @@ public:
virtual void setModel(QAbstractItemModel *model);
+ void setGridSize(const QSize &size);
+
virtual QRect visualRect(const QModelIndex &index) const;
- /**
- * Will return the current categorizer. If none set, this method will
- * return 0
- */
- KItemCategorizer *itemCategorizer() const;
+ KCategoryDrawer *categoryDrawer() const;
- /**
- * Sets the categorizer to be used. Causes the item view to repaint
- */
- void setItemCategorizer(KItemCategorizer *itemCategorizer);
+ void setCategoryDrawer(KCategoryDrawer *categoryDrawer);
virtual QModelIndex indexAt(const QPoint &point) const;
@@ -108,7 +103,7 @@ protected Q_SLOTS:
virtual void updateGeometries();
- virtual void slotSortingRoleChanged();
+ virtual void slotLayoutChanged();
private: