diff options
| author | Rafael Fernández López <[email protected]> | 2007-07-06 17:41:04 +0000 |
|---|---|---|
| committer | Rafael Fernández López <[email protected]> | 2007-07-06 17:41:04 +0000 |
| commit | 98d01c5e23e9f9dc6b6a1071e4c6e6bd740dbab3 (patch) | |
| tree | e2fde20a54d0a3cf38ee724aa8a8641faea409fe /src/dolphinitemcategorizer.h | |
| parent | 0661c42dd9893c67a7ceaea6585df2cf7aa3a440 (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.h | 5 |
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 |
