25 #ifndef DIGIKAM_IMPORT_DELEGATE_H
26 #define DIGIKAM_IMPORT_DELEGATE_H
40 class ImportCategorizedView;
41 class ImportThumbnailDelegatePrivate;
42 class ImportNormalDelegatePrivate;
72 const QModelIndex& index, QRect* tooltipRect =
nullptr)
const override;
74 const QModelIndex& index, QRect* activationRect =
nullptr)
const override;
79 void paint(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
96 const QModelIndex& index, QRect* actualRect)
const;
99 void setModel(QAbstractItemModel* model);
149 void setFlow(QListView::Flow flow);
159 bool acceptsActivation(
const QPoint& pos,
const QRect& visualRect,
const QModelIndex& index,
160 QRect* activationRect)
const override;
Definition: importcategorizedview.h:44
Definition: importcategorydrawer.h:41
Definition: importdelegate_p.h:46
Definition: importdelegate.h:45
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition: importdelegate.cpp:238
void clearCaches() override
Definition: importdelegate.cpp:485
bool onActualPixmapRect(const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *actualRect) const
Definition: importdelegate.cpp:400
void setDefaultViewOptions(const QStyleOptionViewItem &option) override
Definition: importdelegate.cpp:420
virtual void updateRects()=0
virtual QPixmap thumbnailPixmap(const QModelIndex &index) const
Definition: importdelegate.cpp:232
virtual void clearModelDataCaches()
Definition: importdelegate.cpp:492
void modelChanged()
Definition: importdelegate.cpp:498
void updateSizeRectsAndPixmaps() override
Definition: importdelegate.cpp:450
QRect downloadIndicatorRect() const
Definition: importdelegate.cpp:197
void modelContentsChanged()
Definition: importdelegate.cpp:505
void setSpacing(int spacing) override
Definition: importdelegate.cpp:147
QRect imageInformationRect() const override
Definition: importdelegate.cpp:185
QRect pixmapRect() const override
Definition: importdelegate.cpp:179
QPixmap pixmapForDrag(const QStyleOptionViewItem &option, const QList< QModelIndex > &indexes) const override
Definition: importdelegate.cpp:376
QRect lockIndicatorRect() const
Definition: importdelegate.cpp:203
void invalidatePaintingCache() override
reimplement these in subclasses
Definition: importdelegate.cpp:432
QRect coordinatesIndicatorRect() const
Definition: importdelegate.cpp:209
void setView(ImportCategorizedView *view)
Definition: importdelegate.cpp:87
~ImportDelegate() override
Definition: importdelegate.cpp:81
bool acceptsToolTip(const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *tooltipRect=nullptr) const override
Definition: importdelegate.cpp:388
void updateActualPixmapRect(const QModelIndex &index, const QRect &rect)
Definition: importdelegate.cpp:528
void setModel(QAbstractItemModel *model)
Definition: importdelegate.cpp:109
QRect groupIndicatorRect() const
Definition: importdelegate.cpp:191
QRect tagsRect() const
Definition: importdelegate.cpp:173
ImportDelegate(QObject *const parent=nullptr)
Definition: importdelegate.cpp:71
QRect actualPixmapRect(const QModelIndex &index) const
Definition: importdelegate.cpp:510
ImportCategoryDrawer * categoryDrawer() const
Definition: importdelegate.cpp:159
virtual void updateContentWidth()
Definition: importdelegate.cpp:444
int calculatethumbSizeToFit(int ws)
Definition: importdelegate.cpp:539
static QPixmap retrieveThumbnailPixmap(const QModelIndex &index, int thumbnailSize)
Definition: importdelegate.cpp:215
bool acceptsActivation(const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *activationRect=nullptr) const override
Definition: importdelegate.cpp:394
Definition: importdelegate_p.h:124
Definition: importdelegate.h:176
ImportNormalDelegate(ImportCategorizedView *const parent)
Definition: importdelegate.cpp:737
void updateRects() override
Definition: importdelegate.cpp:756
~ImportNormalDelegate() override
Definition: importdelegate.cpp:752
Definition: importdelegate.h:141
int maximumSize() const
Definition: importdelegate.cpp:636
void setFlow(QListView::Flow flow)
Definition: importdelegate.cpp:620
int thumbnailPixmapSize(bool withHighlight, int size)
Definition: importdelegate.cpp:677
void setDefaultViewOptions(const QStyleOptionViewItem &option) override
Definition: importdelegate.cpp:626
ImportThumbnailDelegate(ImportCategorizedView *const parent)
Definition: importdelegate.cpp:609
void updateRects() override
Definition: importdelegate.cpp:687
void updateContentWidth() override
Definition: importdelegate.cpp:658
int minimumSize() const
Definition: importdelegate.cpp:643
~ImportThumbnailDelegate() override
Definition: importdelegate.cpp:616
bool acceptsActivation(const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *activationRect) const override
Definition: importdelegate.cpp:650
NOTE: Some reuse of the existing model-view classes.
Definition: itemviewimportdelegate.h:46
int spacing() const
Definition: itemviewimportdelegate.cpp:140
QRect rect() const
Definition: itemviewimportdelegate.cpp:147
ThumbnailSize thumbnailSize() const
Definition: itemviewimportdelegate.cpp:109
Definition: datefolderview.cpp:43