Changeset View
Changeset View
Standalone View
Standalone View
kgthemeselector_p.h
Show All 29 Lines | 28 | public: | |||
---|---|---|---|---|---|
30 | { | 30 | { | ||
31 | DescriptionRole = Qt::UserRole, | 31 | DescriptionRole = Qt::UserRole, | ||
32 | AuthorRole, | 32 | AuthorRole, | ||
33 | AuthorEmailRole, | 33 | AuthorEmailRole, | ||
34 | IdRole //not displayed, but used internally | 34 | IdRole //not displayed, but used internally | ||
35 | }; | 35 | }; | ||
36 | 36 | | |||
37 | KgThemeDelegate(QObject* parent = nullptr); | 37 | KgThemeDelegate(QObject* parent = nullptr); | ||
38 | void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const Q_DECL_OVERRIDE; | 38 | void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override; | ||
39 | ///@note The implementation is independent of @a option and @a index. | 39 | ///@note The implementation is independent of @a option and @a index. | ||
40 | QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const Q_DECL_OVERRIDE; | 40 | QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const override; | ||
41 | QRect thumbnailRect(const QRect& baseRect) const; | 41 | QRect thumbnailRect(const QRect& baseRect) const; | ||
42 | }; | 42 | }; | ||
43 | 43 | | |||
44 | #endif // KG_THEMESELECTOR_P_H | 44 | #endif // KG_THEMESELECTOR_P_H |