25 #ifndef DIGIKAM_ITEM_DELEGATE_H
26 #define DIGIKAM_ITEM_DELEGATE_H
36 class ItemCategoryDrawer;
37 class ItemCategorizedView;
38 class ItemDelegateOverlay;
39 class ItemFilterModel;
41 class ItemThumbnailModel;
67 const QModelIndex& index, QRect* tooltipRect =
nullptr)
const override;
69 const QModelIndex& index, QRect* activationRect =
nullptr)
const override;
74 void paint(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
110 const QModelIndex& index, QRect* actualRect)
const;
116 void setModel(QAbstractItemModel* model);
Definition: itemcategorizedview.h:49
Definition: itemcategorydrawer.h:44
Definition: itemdelegate_p.h:45
Definition: itemdelegate.h:44
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition: itemdelegate.cpp:232
virtual QPixmap thumbnailPixmap(const QModelIndex &index) const
Definition: itemdelegate.cpp:226
QRect actualPixmapRect(const QModelIndex &index) const
Definition: itemdelegate.cpp:523
QRect tagsRect() const
Definition: itemdelegate.cpp:182
ItemDelegate(QObject *const parent=nullptr)
Definition: itemdelegate.cpp:80
QRect pixmapRect() const override
Definition: itemdelegate.cpp:188
void updateSizeRectsAndPixmaps() override
Definition: itemdelegate.cpp:464
virtual void updateRects()=0
QRect commentsRect() const
Definition: itemdelegate.cpp:176
virtual void clearModelDataCaches()
Definition: itemdelegate.cpp:505
QRect groupIndicatorRect() const
Definition: itemdelegate.cpp:200
void invalidatePaintingCache() override
Definition: itemdelegate.cpp:446
ItemCategoryDrawer * categoryDrawer() const
Definition: itemdelegate.cpp:170
static QPixmap retrieveThumbnailPixmap(const QModelIndex &index, int thumbnailSize)
Definition: itemdelegate.cpp:212
void updateActualPixmapRect(const QModelIndex &index, const QRect &rect)
Definition: itemdelegate.cpp:539
virtual void updateContentWidth()
Definition: itemdelegate.cpp:458
bool acceptsActivation(const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *activationRect=nullptr) const override
Definition: itemdelegate.cpp:408
QRect coordinatesIndicatorRect() const
Definition: itemdelegate.cpp:206
void setDefaultViewOptions(const QStyleOptionViewItem &option) override
Definition: itemdelegate.cpp:434
void modelChanged()
Definition: itemdelegate.cpp:511
void clearCaches() override
Definition: itemdelegate.cpp:498
void setView(ItemCategorizedView *view)
Definition: itemdelegate.cpp:98
int calculatethumbSizeToFit(int ws)
Definition: itemdelegate.cpp:550
~ItemDelegate() override
Definition: itemdelegate.cpp:90
bool onActualPixmapRect(const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *actualRect) const
Definition: itemdelegate.cpp:414
QPixmap pixmapForDrag(const QStyleOptionViewItem &option, const QList< QModelIndex > &indexes) const override
Definition: itemdelegate.cpp:390
QRect imageInformationRect() const override
Definition: itemdelegate.cpp:194
void setSpacing(int spacing) override
Definition: itemdelegate.cpp:158
void setModel(QAbstractItemModel *model)
Definition: itemdelegate.cpp:120
void modelContentsChanged()
Definition: itemdelegate.cpp:518
bool acceptsToolTip(const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *tooltipRect=nullptr) const override
Definition: itemdelegate.cpp:402
Definition: itemviewdelegate.h:42
ThumbnailSize thumbnailSize() const
Definition: itemviewdelegate.cpp:112
int spacing() const
Definition: itemviewdelegate.cpp:143
QRect rect() const
Definition: itemviewdelegate.cpp:150
Definition: datefolderview.cpp:43