digiKam
Digikam::ItemDelegateOverlayContainer Class Referenceabstract
+ Inheritance diagram for Digikam::ItemDelegateOverlayContainer:

Public Member Functions

void installOverlay (ItemDelegateOverlay *overlay)
 
 ItemDelegateOverlayContainer ()=default
 
void mouseMoved (QMouseEvent *e, const QRect &visualRect, const QModelIndex &index)
 
QList< ItemDelegateOverlay * > overlays () const
 
void removeAllOverlays ()
 
void removeOverlay (ItemDelegateOverlay *overlay)
 
void setAllOverlaysActive (bool active)
 
void setViewOnAllOverlays (QAbstractItemView *view)
 
virtual ~ItemDelegateOverlayContainer ()=default
 

Protected Member Functions

virtual QAbstractItemDelegate * asDelegate ()=0
 Returns the delegate, typically, the derived class. More...
 
virtual void drawOverlays (QPainter *p, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
virtual void overlayDestroyed (QObject *o)
 Declare as slot in the derived class calling this method. More...
 

Protected Attributes

QList< ItemDelegateOverlay * > m_overlays
 

Constructor & Destructor Documentation

◆ ItemDelegateOverlayContainer()

Digikam::ItemDelegateOverlayContainer::ItemDelegateOverlayContainer ( )
default

This is a sample implementation for delegate management methods, to be inherited by a delegate. Does not inherit QObject, the delegate already does.

◆ ~ItemDelegateOverlayContainer()

virtual Digikam::ItemDelegateOverlayContainer::~ItemDelegateOverlayContainer ( )
virtualdefault

Member Function Documentation

◆ asDelegate()

virtual QAbstractItemDelegate* Digikam::ItemDelegateOverlayContainer::asDelegate ( )
protectedpure virtual

Returns the delegate, typically, the derived class.

Implemented in Digikam::ItemViewImportDelegate, ShowFoto::ShowfotoItemViewDelegate, Digikam::ItemViewDelegate, and Digikam::VersionsDelegate.

Referenced by installOverlay(), and removeOverlay().

◆ drawOverlays()

void Digikam::ItemDelegateOverlayContainer::drawOverlays ( QPainter *  p,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
protectedvirtual

◆ installOverlay()

◆ mouseMoved()

void Digikam::ItemDelegateOverlayContainer::mouseMoved ( QMouseEvent *  e,
const QRect &  visualRect,
const QModelIndex &  index 
)

◆ overlayDestroyed()

void Digikam::ItemDelegateOverlayContainer::overlayDestroyed ( QObject *  o)
protectedvirtual

◆ overlays()

QList< ItemDelegateOverlay * > Digikam::ItemDelegateOverlayContainer::overlays ( ) const

References m_overlays.

◆ removeAllOverlays()

◆ removeOverlay()

◆ setAllOverlaysActive()

void Digikam::ItemDelegateOverlayContainer::setAllOverlaysActive ( bool  active)

◆ setViewOnAllOverlays()

void Digikam::ItemDelegateOverlayContainer::setViewOnAllOverlays ( QAbstractItemView *  view)

Member Data Documentation

◆ m_overlays


The documentation for this class was generated from the following files: