|
virtual bool | acceptsActivation (const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *activationRect=nullptr) const =0 |
|
virtual bool | acceptsToolTip (const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *tooltipRect=nullptr) const =0 |
|
| DItemDelegate (QObject *const parent=nullptr) |
|
virtual QSize | gridSize () const =0 |
|
virtual void | mouseMoved (QMouseEvent *e, const QRect &visualRect, const QModelIndex &index)=0 |
|
virtual QPixmap | pixmapForDrag (const QStyleOptionViewItem &option, const QList< QModelIndex > &indexes) const =0 |
|
virtual void | setDefaultViewOptions (const QStyleOptionViewItem &option)=0 |
|
virtual void | setSpacing (int spacing)=0 |
|
virtual void | setThumbnailSize (const ThumbnailSize &thumbSize)=0 |
|
| ~DItemDelegate () override |
|
|
static QString | dateToString (const QDateTime &datetime) |
|
static QPixmap | makeDragPixmap (const QStyleOptionViewItem &option, const QList< QModelIndex > &indexes, const QPixmap &suggestedPixmap=QPixmap()) |
|
static QString | squeezedText (const QFontMetrics &fm, int width, const QString &text) |
|
◆ DItemDelegate()
Digikam::DItemDelegate::DItemDelegate |
( |
QObject *const |
parent = nullptr | ) |
|
|
explicit |
◆ ~DItemDelegate()
Digikam::DItemDelegate::~DItemDelegate |
( |
| ) |
|
|
override |
◆ acceptsActivation()
virtual bool Digikam::DItemDelegate::acceptsActivation |
( |
const QPoint & |
pos, |
|
|
const QRect & |
visualRect, |
|
|
const QModelIndex & |
index, |
|
|
QRect * |
activationRect = nullptr |
|
) |
| const |
|
pure virtual |
◆ acceptsToolTip()
virtual bool Digikam::DItemDelegate::acceptsToolTip |
( |
const QPoint & |
pos, |
|
|
const QRect & |
visualRect, |
|
|
const QModelIndex & |
index, |
|
|
QRect * |
tooltipRect = nullptr |
|
) |
| const |
|
pure virtual |
These methods take four parameters: The position on viewport, the rect on viewport, the index, and optionally a parameter into which, if the return value is true, a rectangle can be written for which the return value will be true as well.
Implemented in Digikam::ItemViewImportDelegate, Digikam::ImportDelegate, ShowFoto::ShowfotoItemViewDelegate, ShowFoto::ShowfotoDelegate, Digikam::ItemViewDelegate, and Digikam::ItemDelegate.
◆ clearCaches()
void Digikam::DItemDelegate::clearCaches |
( |
| ) |
|
|
protectedvirtual |
◆ dateToString()
QString Digikam::DItemDelegate::dateToString |
( |
const QDateTime & |
datetime | ) |
|
|
static |
◆ gridSize()
virtual QSize Digikam::DItemDelegate::gridSize |
( |
| ) |
const |
|
pure virtual |
◆ gridSizeChanged
void Digikam::DItemDelegate::gridSizeChanged |
( |
const QSize & |
newSize | ) |
|
|
signal |
◆ makeDragPixmap()
QPixmap Digikam::DItemDelegate::makeDragPixmap |
( |
const QStyleOptionViewItem & |
option, |
|
|
const QList< QModelIndex > & |
indexes, |
|
|
const QPixmap & |
suggestedPixmap = QPixmap() |
|
) |
| |
|
static |
◆ mouseMoved()
virtual void Digikam::DItemDelegate::mouseMoved |
( |
QMouseEvent * |
e, |
|
|
const QRect & |
visualRect, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
pure virtual |
◆ pixmapForDrag()
virtual QPixmap Digikam::DItemDelegate::pixmapForDrag |
( |
const QStyleOptionViewItem & |
option, |
|
|
const QList< QModelIndex > & |
indexes |
|
) |
| const |
|
pure virtual |
◆ setDefaultViewOptions()
virtual void Digikam::DItemDelegate::setDefaultViewOptions |
( |
const QStyleOptionViewItem & |
option | ) |
|
|
pure virtual |
◆ setSpacing()
virtual void Digikam::DItemDelegate::setSpacing |
( |
int |
spacing | ) |
|
|
pure virtual |
◆ setThumbnailSize()
virtual void Digikam::DItemDelegate::setThumbnailSize |
( |
const ThumbnailSize & |
thumbSize | ) |
|
|
pure virtual |
◆ squeezedText()
QString Digikam::DItemDelegate::squeezedText |
( |
const QFontMetrics & |
fm, |
|
|
int |
width, |
|
|
const QString & |
text |
|
) |
| |
|
static |
◆ squeezedTextCached()
QString Digikam::DItemDelegate::squeezedTextCached |
( |
QPainter *const |
p, |
|
|
int |
width, |
|
|
const QString & |
text |
|
) |
| const |
|
protected |
◆ thumbnailBorderPixmap()
QPixmap Digikam::DItemDelegate::thumbnailBorderPixmap |
( |
const QSize & |
pixSize, |
|
|
bool |
isGrouped = false |
|
) |
| const |
|
protected |
◆ visualChange
void Digikam::DItemDelegate::visualChange |
( |
| ) |
|
|
signal |
The documentation for this class was generated from the following files: