digiKam
|
Signals | |
void | gridSizeChanged (const QSize &newSize) |
void | hideNotification () |
void | requestNotification (const QModelIndex &index, const QString &message) |
void | visualChange () |
Public Member Functions | |
bool | acceptsActivation (const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *activationRect=nullptr) const override |
bool | acceptsToolTip (const QPoint &pos, const QRect &visualRect, const QModelIndex &index, QRect *tooltipRect=nullptr) const override |
QSize | gridSize () const override |
virtual QRect | imageInformationRect () const |
void | installOverlay (ItemDelegateOverlay *overlay) |
void | mouseMoved (QMouseEvent *e, const QRect &visualRect, const QModelIndex &index) override |
QList< ItemDelegateOverlay * > | overlays () const |
virtual QPixmap | pixmapForDrag (const QStyleOptionViewItem &option, const QList< QModelIndex > &indexes) const =0 |
virtual QRect | pixmapRect () const |
QRect | rect () const |
void | removeAllOverlays () |
void | removeOverlay (ItemDelegateOverlay *overlay) |
void | setAllOverlaysActive (bool active) |
void | setDefaultViewOptions (const QStyleOptionViewItem &option) override |
void | setSpacing (int spacing) override |
void | setThumbnailSize (const ThumbnailSize &thumbSize) override |
reimplemented from DItemDelegate More... | |
void | setViewOnAllOverlays (QAbstractItemView *view) |
ShowfotoItemViewDelegate (QObject *const parent=nullptr) | |
QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
int | spacing () const |
ThumbnailSize | thumbnailSize () const |
~ShowfotoItemViewDelegate () override | |
Static Public Member Functions | |
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) |
Protected Slots | |
void | overlayDestroyed (QObject *o) override |
void | slotSetupChanged () |
void | slotThemeChanged () |
Protected Member Functions | |
QAbstractItemDelegate * | asDelegate () override |
Returns the delegate, typically, the derived class. More... | |
virtual void | clearCaches () |
void | drawCreationDate (QPainter *p, const QRect &dateRect, const QDateTime &date) const |
void | drawFileSize (QPainter *p, const QRect &r, qlonglong bytes) const |
void | drawFocusRect (QPainter *p, const QStyleOptionViewItem &option, bool isSelected) const |
void | drawGeolocationIndicator (QPainter *p, const QRect &r) const |
void | drawImageFormat (QPainter *p, const QRect &dimsRect, const QString &mime) const |
void | drawImageSize (QPainter *p, const QRect &dimsRect, const QSize &dims) const |
void | drawMouseOverRect (QPainter *p, const QStyleOptionViewItem &option) const |
void | drawName (QPainter *p, const QRect &nameRect, const QString &name) const |
virtual void | drawOverlays (QPainter *p, const QStyleOptionViewItem &option, const QModelIndex &index) const |
QRect | drawThumbnail (QPainter *p, const QRect &thumbRect, const QPixmap &background, const QPixmap &thumbnail) const |
Use the tool methods for painting in subclasses. More... | |
virtual void | invalidatePaintingCache () |
reimplement these in subclasses More... | |
void | prepareBackground () |
void | prepareFonts () |
void | prepareMetrics (int maxWidth) |
ShowfotoItemViewDelegate (ShowfotoItemViewDelegatePrivate &dd, QObject *const parent) | |
QString | squeezedTextCached (QPainter *const p, int width, const QString &text) const |
QPixmap | thumbnailBorderPixmap (const QSize &pixSize, bool isGrouped=false) const |
virtual void | updateSizeRectsAndPixmaps ()=0 |
Protected Attributes | |
ShowfotoItemViewDelegatePrivate *const | d_ptr |
QList< ItemDelegateOverlay * > | m_overlays |
|
explicit |
References d_ptr, and ShowFoto::ShowfotoItemViewDelegatePrivate::init().
|
override |
|
protected |
References d_ptr, and ShowFoto::ShowfotoItemViewDelegatePrivate::init().
|
overridevirtual |
Implements Digikam::DItemDelegate.
Referenced by ShowFoto::ShowfotoThumbnailDelegate::acceptsActivation().
|
overridevirtual |
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.
Implements Digikam::DItemDelegate.
|
overrideprotectedvirtual |
Returns the delegate, typically, the derived class.
Implements Digikam::ItemDelegateOverlayContainer.
|
protectedvirtualinherited |
Reimplemented in Digikam::ImportDelegate, ShowFoto::ShowfotoDelegate, and Digikam::ItemDelegate.
Referenced by Digikam::ItemDelegate::clearCaches(), ShowFoto::ShowfotoDelegate::clearCaches(), and Digikam::ImportDelegate::clearCaches().
|
staticinherited |
|
protected |
References Digikam::DItemDelegate::dateToString().
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
protected |
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
protected |
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
protected |
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
protected |
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
protected |
|
protected |
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
protected |
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
protectedvirtualinherited |
|
protected |
Use the tool methods for painting in subclasses.
References Digikam::DItemDelegate::thumbnailBorderPixmap().
Referenced by ShowFoto::ShowfotoDelegate::paint().
|
overridevirtual |
Returns the gridsize to be set by the view. It's sizeHint plus spacing.
Implements Digikam::DItemDelegate.
Referenced by ShowFoto::ShowfotoDelegate::calculatethumbSizeToFit().
|
signalinherited |
|
signal |
Referenced by ShowFoto::ShowfotoCategorizedView::setItemDelegate().
|
virtual |
Returns the area where the image information is drawn, or null if empty / not supported. The image information is textual or graphical information, but not the pixmap. The ratingRect() will e.g. typically be contained in this area.
Reimplemented in ShowFoto::ShowfotoDelegate.
|
inherited |
References Digikam::ItemDelegateOverlay::acceptsDelegate(), Digikam::ItemDelegateOverlayContainer::asDelegate(), Digikam::ItemDelegateOverlayContainer::m_overlays, Digikam::ItemDelegateOverlayContainer::overlayDestroyed(), and Digikam::ItemDelegateOverlay::setDelegate().
Referenced by Digikam::VersionsTreeView::addOverlay(), Digikam::ImportCategorizedView::addOverlay(), Digikam::ItemCategorizedView::addOverlay(), and ShowFoto::ShowfotoCategorizedView::addOverlay().
|
protectedvirtual |
reimplement these in subclasses
Reimplemented in ShowFoto::ShowfotoDelegate.
References Digikam::DItemDelegate::gridSizeChanged(), updateSizeRectsAndPixmaps(), and Digikam::DItemDelegate::visualChange().
Referenced by ShowFoto::ShowfotoDelegate::invalidatePaintingCache(), setDefaultViewOptions(), setSpacing(), setThumbnailSize(), slotSetupChanged(), and slotThemeChanged().
|
staticinherited |
|
overridevirtual |
NOTE: to be called by ItemViewCategorized only
Implements Digikam::DItemDelegate.
|
overrideprotectedslot |
|
inherited |
|
pure virtualinherited |
Implemented in Digikam::ImportDelegate, ShowFoto::ShowfotoDelegate, and Digikam::ItemDelegate.
|
virtual |
Returns the area where the pixmap is drawn, or null if not supported
Reimplemented in ShowFoto::ShowfotoDelegate.
|
protected |
Referenced by ShowFoto::ShowfotoDelegate::updateSizeRectsAndPixmaps().
|
protected |
Referenced by ShowFoto::ShowfotoDelegate::updateSizeRectsAndPixmaps().
|
protected |
Referenced by ShowFoto::ShowfotoDelegate::updateSizeRectsAndPixmaps().
QRect ShowFoto::ShowfotoItemViewDelegate::rect | ( | ) | const |
|
inherited |
References Digikam::ItemDelegateOverlayContainer::m_overlays, Digikam::ItemDelegateOverlay::setActive(), Digikam::ItemDelegateOverlay::setDelegate(), and Digikam::ItemDelegateOverlay::setView().
Referenced by Digikam::ItemViewDelegate::~ItemViewDelegate(), Digikam::ItemViewImportDelegate::~ItemViewImportDelegate(), ~ShowfotoItemViewDelegate(), and Digikam::VersionsTreeView::~VersionsTreeView().
|
inherited |
References Digikam::ItemDelegateOverlayContainer::asDelegate(), Digikam::ItemDelegateOverlayContainer::m_overlays, Digikam::ItemDelegateOverlay::setActive(), and Digikam::ItemDelegateOverlay::setDelegate().
Referenced by Digikam::ItemDelegateOverlayContainer::overlayDestroyed(), Digikam::ItemCategorizedView::removeOverlay(), Digikam::VersionsTreeView::removeOverlay(), ShowFoto::ShowfotoCategorizedView::removeOverlay(), and Digikam::ImportCategorizedView::removeOverlay().
|
signal |
Referenced by ShowFoto::ShowfotoCategorizedView::setItemDelegate().
|
inherited |
|
overridevirtual |
Style option with standard values to use for cached rendering. option.rect shall be the viewport rectangle. Call on resize, font change.
Implements Digikam::DItemDelegate.
References invalidatePaintingCache().
Referenced by ShowFoto::ShowfotoDelegate::setDefaultViewOptions().
|
overridevirtual |
Implements Digikam::DItemDelegate.
References invalidatePaintingCache(), and spacing().
Referenced by ShowFoto::ShowfotoDelegate::setSpacing().
|
overridevirtual |
reimplemented from DItemDelegate
Implements Digikam::DItemDelegate.
References invalidatePaintingCache().
Referenced by ShowFoto::ShowfotoCategorizedView::setItemDelegate().
|
inherited |
|
override |
|
protectedslot |
References invalidatePaintingCache().
|
protectedslot |
References invalidatePaintingCache().
int ShowFoto::ShowfotoItemViewDelegate::spacing | ( | ) | const |
|
staticinherited |
Referenced by Digikam::DItemDelegate::squeezedTextCached().
|
protectedinherited |
|
protectedinherited |
ThumbnailSize ShowFoto::ShowfotoItemViewDelegate::thumbnailSize | ( | ) | const |
|
protectedpure virtual |
Implemented in ShowFoto::ShowfotoDelegate.
Referenced by invalidatePaintingCache().
|
signalinherited |
|
protected |
Referenced by ShowfotoItemViewDelegate().
|
protectedinherited |
Referenced by Digikam::ItemDelegateOverlayContainer::drawOverlays(), Digikam::ItemDelegateOverlayContainer::installOverlay(), Digikam::ItemDelegateOverlayContainer::mouseMoved(), Digikam::ItemDelegateOverlayContainer::overlays(), Digikam::ItemDelegateOverlayContainer::removeAllOverlays(), Digikam::ItemDelegateOverlayContainer::removeOverlay(), Digikam::ItemDelegateOverlayContainer::setAllOverlaysActive(), and Digikam::ItemDelegateOverlayContainer::setViewOnAllOverlays().