24 #ifndef DIGIKAM_IMPORT_CATEGORY_DRAWER_H
25 #define DIGIKAM_IMPORT_CATEGORY_DRAWER_H
29 #include <QStyleOptionViewItem>
38 class ImportCategorizedView;
53 int categoryHeight(
const QModelIndex& index,
const QStyleOption& option)
const override;
54 void drawCategory(
const QModelIndex& index,
int sortRole,
55 const QStyleOption& option, QPainter* painter)
const override;
60 void updateRectsAndPixmaps(
int width);
61 void viewHeaderText(
const QModelIndex& index, QString* header, QString* subLine)
const;
62 void textForFormat(
const QModelIndex& index, QString* header, QString* subLine)
const;
63 void textForDate(
const QModelIndex& index, QString* header, QString* subLine)
const;
Definition: dcategorydrawer.h:52
Definition: importcategorizedview.h:44
Definition: importcategorydrawer.h:41
void invalidatePaintingCache()
Definition: importcategorydrawer.cpp:99
virtual int maximumHeight() const
Definition: importcategorydrawer.cpp:79
ImportCategoryDrawer(ImportCategorizedView *const parent)
Definition: importcategorydrawer.cpp:62
int categoryHeight(const QModelIndex &index, const QStyleOption &option) const override
Definition: importcategorydrawer.cpp:74
void setLowerSpacing(int spacing)
Definition: importcategorydrawer.cpp:84
void setDefaultViewOptions(const QStyleOptionViewItem &option)
Definition: importcategorydrawer.cpp:89
void drawCategory(const QModelIndex &index, int sortRole, const QStyleOption &option, QPainter *painter) const override
Definition: importcategorydrawer.cpp:109
~ImportCategoryDrawer() override
Definition: importcategorydrawer.cpp:69
Definition: datefolderview.cpp:43