25 #ifndef SHOW_FOTO_DELEGATE_H
26 #define SHOW_FOTO_DELEGATE_H
40 class ShowfotoThumbnailBar;
41 class ShowfotoThumbnailDelegatePrivate;
42 class ShowfotoNormalDelegatePrivate;
43 class ShowfotoFilterModel;
65 const QModelIndex& index, QRect* tooltipRect =
nullptr)
const override;
67 const QModelIndex& index, QRect* activationRect =
nullptr)
const override;
72 void paint(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
89 const QModelIndex& index, QRect* actualRect)
const;
92 void setModel(QAbstractItemModel* model);
142 void setFlow(QListView::Flow flow);
153 const QRect& visualRect,
154 const QModelIndex& index,
155 QRect* activationRect)
const override;
182 QObject*
const parent =
nullptr);
189 QObject*
const parent =
nullptr);
Definition: showfotodelegate_p.h:56
Definition: showfotodelegate.h:46
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition: showfotodelegate.cpp:175
virtual void updateContentWidth()
Definition: showfotodelegate.cpp:314
bool acceptsActivation(const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *activationRect=nullptr) const override
Definition: showfotodelegate.cpp:277
void updateActualPixmapRect(const QModelIndex &index, const QRect &rect)
Definition: showfotodelegate.cpp:390
void modelChanged()
Definition: showfotodelegate.cpp:360
void modelContentsChanged()
Definition: showfotodelegate.cpp:367
void clearCaches() override
Definition: showfotodelegate.cpp:347
void setSpacing(int spacing) override
Definition: showfotodelegate.cpp:118
bool onActualPixmapRect(const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *actualRect) const
Definition: showfotodelegate.cpp:283
~ShowfotoDelegate() override
Definition: showfotodelegate.cpp:52
virtual QPixmap thumbnailPixmap(const QModelIndex &index) const
Definition: showfotodelegate.cpp:168
virtual void updateRects()=0
static QPixmap retrieveThumbnailPixmap(const QModelIndex &index, int thumbnailSize)
Definition: showfotodelegate.cpp:151
void invalidatePaintingCache() override
reimplement these in subclasses
Definition: showfotodelegate.cpp:309
void updateSizeRectsAndPixmaps() override
Definition: showfotodelegate.cpp:320
QRect imageInformationRect() const override
Definition: showfotodelegate.cpp:130
ShowfotoDelegate(QObject *const parent=nullptr)
Definition: showfotodelegate.cpp:42
QRect coordinatesIndicatorRect() const
Definition: showfotodelegate.cpp:144
void setDefaultViewOptions(const QStyleOptionViewItem &option) override
Definition: showfotodelegate.cpp:303
QRect pixmapRect() const override
Definition: showfotodelegate.cpp:123
void setModel(QAbstractItemModel *model)
Definition: showfotodelegate.cpp:80
int calculatethumbSizeToFit(int ws)
Definition: showfotodelegate.cpp:401
QPixmap pixmapForDrag(const QStyleOptionViewItem &option, const QList< QModelIndex > &indexes) const override
Definition: showfotodelegate.cpp:258
void setView(ShowfotoThumbnailBar *view)
Definition: showfotodelegate.cpp:58
bool acceptsToolTip(const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *tooltipRect=nullptr) const override
Definition: showfotodelegate.cpp:271
QRect actualPixmapRect(const QModelIndex &index) const
Definition: showfotodelegate.cpp:372
virtual void clearModelDataCaches()
Definition: showfotodelegate.cpp:354
QRect groupIndicatorRect() const
Definition: showfotodelegate.cpp:137
Definition: showfotoitemviewdelegate.h:44
QRect rect() const
Definition: showfotoitemviewdelegate.cpp:114
int spacing() const
Definition: showfotoitemviewdelegate.cpp:107
ThumbnailSize thumbnailSize() const
Definition: showfotoitemviewdelegate.cpp:76
Definition: showfotodelegate_p.h:121
Definition: showfotodelegate.h:176
void updateRects() override
Definition: showfotodelegate.cpp:603
~ShowfotoNormalDelegate() override
Definition: showfotodelegate.cpp:599
ShowfotoNormalDelegate(ShowfotoThumbnailBar *const bar, QObject *const parent=nullptr)
Definition: showfotodelegate.cpp:580
Definition: showfotothumbnailbar.h:38
Definition: showfotodelegate.h:134
void setFlow(QListView::Flow flow)
Definition: showfotodelegate.cpp:481
void updateContentWidth() override
Definition: showfotodelegate.cpp:519
int maximumSize() const
Definition: showfotodelegate.cpp:497
~ShowfotoThumbnailDelegate() override
Definition: showfotodelegate.cpp:477
int minimumSize() const
Definition: showfotodelegate.cpp:504
bool acceptsActivation(const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *activationRect) const override
Definition: showfotodelegate.cpp:511
void updateRects() override
Definition: showfotodelegate.cpp:549
int thumbnailPixmapSize(bool withHighlight, int size)
Definition: showfotodelegate.cpp:539
ShowfotoThumbnailDelegate(ShowfotoThumbnailBar *const parent)
Definition: showfotodelegate.cpp:470
void setDefaultViewOptions(const QStyleOptionViewItem &option) override
Definition: showfotodelegate.cpp:487
Definition: showfotofolderviewbar.cpp:52