24 #ifndef DIGIKAM_ITEM_CATEGORY_DRAWER_H
25 #define DIGIKAM_ITEM_CATEGORY_DRAWER_H
31 class QStyleOptionViewItem;
36 class ItemCategorizedView;
52 int categoryHeight(
const QModelIndex& index,
const QStyleOption& option)
const override;
53 void drawCategory(
const QModelIndex& index,
int sortRole,
const QStyleOption& option, QPainter* painter)
const override;
62 void updateRectsAndPixmaps(
int width);
63 void viewHeaderText(
const QModelIndex& index, QString* header, QString* subLine)
const;
64 void textForAlbum(
const QModelIndex& index, QString* header, QString* subLine)
const;
65 void textForPAlbum(
PAlbum* a,
bool recursive,
int count, QString* header, QString* subLine)
const;
66 void textForTAlbum(
TAlbum* a,
bool recursive,
int count, QString* header, QString* subLine)
const;
67 void textForSAlbum(
SAlbum* a,
int count, QString* header, QString* subLine)
const;
68 void textForDAlbum(
DAlbum* a,
int count, QString* header, QString* subLine)
const;
69 void textForFormat(
const QModelIndex& index, QString* header, QString* subLine)
const;
70 void textForMonth(
const QModelIndex& index, QString* header, QString* subLine)
const;
71 void textForFace(
const QModelIndex& index, QString* header, QString* subLine)
const;
Definition: dcategorydrawer.h:52
Definition: itemcategorizedview.h:49
Definition: itemcategorydrawer.h:44
ItemCategoryDrawer(ItemCategorizedView *const parent)
Definition: itemcategorydrawer.cpp:70
void setLowerSpacing(int spacing)
Definition: itemcategorydrawer.cpp:92
virtual int maximumHeight() const
Definition: itemcategorydrawer.cpp:87
int categoryHeight(const QModelIndex &index, const QStyleOption &option) const override
Definition: itemcategorydrawer.cpp:82
void invalidatePaintingCache()
Definition: itemcategorydrawer.cpp:107
void drawCategory(const QModelIndex &index, int sortRole, const QStyleOption &option, QPainter *painter) const override
Definition: itemcategorydrawer.cpp:117
~ItemCategoryDrawer() override
Definition: itemcategorydrawer.cpp:77
void setDefaultViewOptions(const QStyleOptionViewItem &option)
Definition: itemcategorydrawer.cpp:97
@ Album
Definition: coredbfields.h:58
Definition: datefolderview.cpp:43