digiKam
Loading...
Searching...
No Matches
Digikam::ItemDelegateOverlayContainer Class Referenceabstract

#include <itemdelegateoverlay.h>

+ 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.
 
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.
 

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::VersionsDelegate, Digikam::ItemViewDelegate, ShowFoto::ShowfotoItemViewDelegate, and Digikam::ItemViewImportDelegate.

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)

References m_overlays.

◆ setViewOnAllOverlays()

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

Member Data Documentation

◆ m_overlays

QList<ItemDelegateOverlay*> Digikam::ItemDelegateOverlayContainer::m_overlays
protected

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