Changeset View
Changeset View
Standalone View
Standalone View
icons/CategoryDrawer.h
Show All 30 Lines | 30 | { | |||
---|---|---|---|---|---|
31 | Q_OBJECT | 31 | Q_OBJECT | ||
32 | public: | 32 | public: | ||
33 | explicit CategoryDrawer(KCategorizedView *view); | 33 | explicit CategoryDrawer(KCategorizedView *view); | ||
34 | 34 | | |||
35 | void drawCategory(const QModelIndex &index, | 35 | void drawCategory(const QModelIndex &index, | ||
36 | int sortRole, | 36 | int sortRole, | ||
37 | const QStyleOption &option, | 37 | const QStyleOption &option, | ||
38 | QPainter *painter) const override; | 38 | QPainter *painter) const override; | ||
39 | | ||||
40 | int categoryHeight(const QModelIndex &index, const QStyleOption &option) const override; | | |||
41 | int leftMargin() const override; | | |||
42 | int rightMargin() const override; | | |||
43 | }; | 39 | }; | ||
44 | 40 | | |||
45 | #endif | 41 | #endif |