24 #ifndef SHOW_FOTO_ITEM_VIEW_DELEGATE_H
25 #define SHOW_FOTO_ITEM_VIEW_DELEGATE_H
38 class ShowfotoFilterModel;
39 class ShowfotoItemModel;
40 class ShowfotoItemViewDelegatePrivate;
57 QSize sizeHint(
const QStyleOptionViewItem& option,
58 const QModelIndex& index)
const override;
59 QSize gridSize()
const override;
62 void setThumbnailSize(
const ThumbnailSize& thumbSize)
override;
63 void setSpacing(
int spacing)
override;
64 void setDefaultViewOptions(
const QStyleOptionViewItem& option)
override;
65 bool acceptsToolTip(
const QPoint& pos,
const QRect& visualRect,
66 const QModelIndex& index, QRect* tooltipRect =
nullptr)
const override;
67 bool acceptsActivation(
const QPoint& pos,
const QRect& visualRect,
68 const QModelIndex& index, QRect* activationRect =
nullptr)
const override;
74 virtual QRect pixmapRect()
const;
83 virtual QRect imageInformationRect()
const;
85 void mouseMoved(QMouseEvent* e,
const QRect& visualRect,
const QModelIndex& index)
override;
89 void slotThemeChanged();
90 void slotSetupChanged();
92 void overlayDestroyed(QObject* o)
override;
102 QRect drawThumbnail(QPainter* p,
const QRect& thumbRect,
103 const QPixmap& background,
const QPixmap& thumbnail)
const;
104 void drawName(QPainter* p,
const QRect& nameRect,
const QString& name)
const;
105 void drawCreationDate(QPainter* p,
const QRect& dateRect,
const QDateTime& date)
const;
106 void drawImageSize(QPainter* p,
const QRect& dimsRect,
const QSize& dims)
const;
107 void drawImageFormat(QPainter* p,
const QRect& dimsRect,
const QString& mime)
const;
108 void drawFileSize(QPainter* p,
const QRect& r, qlonglong bytes)
const;
109 void drawGeolocationIndicator(QPainter* p,
const QRect& r)
const;
110 void drawFocusRect(QPainter* p,
const QStyleOptionViewItem& option,
111 bool isSelected)
const;
112 void drawMouseOverRect(QPainter* p,
const QStyleOptionViewItem& option)
const;
114 void prepareMetrics(
int maxWidth);
115 void prepareBackground();
117 QAbstractItemDelegate* asDelegate()
override;
120 virtual void invalidatePaintingCache();
Definition: ditemdelegate.h:42
Definition: itemdelegateoverlay.h:333
Definition: thumbnailsize.h:42
Definition: showfotoitemviewdelegate_p.h:58
Definition: showfotoitemviewdelegate.h:44
void requestNotification(const QModelIndex &index, const QString &message)
ShowfotoItemViewDelegatePrivate *const d_ptr
Definition: showfotoitemviewdelegate.h:125
virtual void updateSizeRectsAndPixmaps()=0
Definition: datefolderview.cpp:43
Definition: showfotofolderviewbar.cpp:52