┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinitemcategorizer.h
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2007-07-06 17:41:04 +0000
committerRafael Fernández López <[email protected]>2007-07-06 17:41:04 +0000
commit98d01c5e23e9f9dc6b6a1071e4c6e6bd740dbab3 (patch)
treee2fde20a54d0a3cf38ee724aa8a8641faea409fe /src/dolphinitemcategorizer.h
parent0661c42dd9893c67a7ceaea6585df2cf7aa3a440 (diff)
Make KListView capable of drawing categories on our own way. This make things easier
when we are trying to customize it. We can also benefit from KStyle if some day it supports category drawing. KListView keyboard navigation. Tricier than I thought. Pending renaming to KCategorizedView. Seems a good name. svn path=/trunk/KDE/kdebase/apps/; revision=684478
Diffstat (limited to 'src/dolphinitemcategorizer.h')
-rw-r--r--src/dolphinitemcategorizer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dolphinitemcategorizer.h b/src/dolphinitemcategorizer.h
index 6be060bd0..65a7340ac 100644
--- a/src/dolphinitemcategorizer.h
+++ b/src/dolphinitemcategorizer.h
@@ -31,7 +31,10 @@ class LIBDOLPHINPRIVATE_EXPORT DolphinItemCategorizer : public KItemCategorizer
public:
DolphinItemCategorizer();
virtual ~DolphinItemCategorizer();
- virtual QString categoryForItem(const QModelIndex &index, int sortRole);
+ virtual QString categoryForItem(const QModelIndex &index, int sortRole) const;
+ virtual void drawCategory(const QModelIndex &index, int sortRole,
+ const QStyleOption &option, QPainter *painter) const;
+ virtual int categoryHeight(const QStyleOption &option) const;
};
#endif // DOLPHINITEMCATEGORIZER_H