24 #ifndef DIGIKAM_DITEM_DELEGATE_H
25 #define DIGIKAM_DITEM_DELEGATE_H
29 #include <QAbstractItemDelegate>
39 class ItemViewCategorized;
75 const QModelIndex& index, QRect* tooltipRect =
nullptr)
const = 0;
77 const QModelIndex& index, QRect* activationRect =
nullptr)
const = 0;
82 virtual void mouseMoved(QMouseEvent* e,
const QRect& visualRect,
const QModelIndex& index) = 0;
84 static QString squeezedText(
const QFontMetrics& fm,
int width,
const QString& text);
85 static QString dateToString(
const QDateTime& datetime);
86 static QPixmap makeDragPixmap(
const QStyleOptionViewItem& option,
const QList<QModelIndex>& indexes,
87 const QPixmap& suggestedPixmap = QPixmap());
96 virtual void clearCaches();
98 QString squeezedTextCached(QPainter*
const p,
int width,
const QString& text)
const;
99 QPixmap thumbnailBorderPixmap(
const QSize& pixSize,
bool isGrouped =
false)
const;
Definition: ditemdelegate.h:42
virtual QSize gridSize() const =0
virtual bool acceptsActivation(const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *activationRect=nullptr) const =0
virtual void setThumbnailSize(const ThumbnailSize &thumbSize)=0
void gridSizeChanged(const QSize &newSize)
virtual void mouseMoved(QMouseEvent *e, const QRect &visualRect, const QModelIndex &index)=0
virtual void setDefaultViewOptions(const QStyleOptionViewItem &option)=0
virtual QPixmap pixmapForDrag(const QStyleOptionViewItem &option, const QList< QModelIndex > &indexes) const =0
virtual bool acceptsToolTip(const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *tooltipRect=nullptr) const =0
virtual void setSpacing(int spacing)=0
Definition: thumbnailsize.h:42
Definition: datefolderview.cpp:43