digiKam
Digikam::VersionsDelegate Class Reference
+ Inheritance diagram for Digikam::VersionsDelegate:

Signals

void animationStateChanged ()
 
void hideNotification ()
 
void requestNotification (const QModelIndex &index, const QString &message)
 NOTE: for ItemDelegateOverlayContainer, unimplemented: More...
 
void visualChange ()
 

Public Member Functions

int animationState () const
 
void beginPainting ()
 
void finishPainting ()
 
void installOverlay (ItemDelegateOverlay *overlay)
 
void mouseMoved (QMouseEvent *e, const QRect &visualRect, const QModelIndex &index)
 
QList< ItemDelegateOverlay * > overlays () const
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
void removeAllOverlays ()
 
void removeOverlay (ItemDelegateOverlay *overlay)
 
void setAllOverlaysActive (bool active)
 
void setAnimationState (int animationState)
 
void setThumbnailSize (int size) const
 
void setViewOnAllOverlays (QAbstractItemView *view)
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
int thumbnailSize () const
 
 VersionsDelegate (QObject *const parent)
 
 ~VersionsDelegate () override
 

Protected Slots

void overlayDestroyed (QObject *o) override
 

Protected Member Functions

QAbstractItemDelegate * asDelegate () override
 Returns the delegate, typically, the derived class. More...
 
virtual void drawOverlays (QPainter *p, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
void initStyleOption (QStyleOptionViewItem *option, const QModelIndex &index) const override
 

Protected Attributes

QList< ItemDelegateOverlay * > m_overlays
 

Properties

int animationState
 

Constructor & Destructor Documentation

◆ VersionsDelegate()

Digikam::VersionsDelegate::VersionsDelegate ( QObject *const  parent)
explicit

◆ ~VersionsDelegate()

Digikam::VersionsDelegate::~VersionsDelegate ( )
override

Member Function Documentation

◆ animationState()

int Digikam::VersionsDelegate::animationState ( ) const

◆ animationStateChanged

void Digikam::VersionsDelegate::animationStateChanged ( )
signal

Referenced by setAnimationState().

◆ asDelegate()

QAbstractItemDelegate* Digikam::VersionsDelegate::asDelegate ( )
inlineoverrideprotectedvirtual

Returns the delegate, typically, the derived class.

Implements Digikam::ItemDelegateOverlayContainer.

◆ beginPainting()

void Digikam::VersionsDelegate::beginPainting ( )

◆ drawOverlays()

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

◆ finishPainting()

void Digikam::VersionsDelegate::finishPainting ( )

◆ hideNotification

void Digikam::VersionsDelegate::hideNotification ( )
signal

◆ initStyleOption()

void Digikam::VersionsDelegate::initStyleOption ( QStyleOptionViewItem *  option,
const QModelIndex &  index 
) const
overrideprotected

◆ installOverlay()

◆ mouseMoved()

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

◆ overlayDestroyed

void Digikam::VersionsDelegate::overlayDestroyed ( QObject *  o)
inlineoverrideprotectedslot

◆ overlays()

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

◆ paint()

void Digikam::VersionsDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

◆ removeAllOverlays()

◆ removeOverlay()

◆ requestNotification

void Digikam::VersionsDelegate::requestNotification ( const QModelIndex &  index,
const QString &  message 
)
signal

NOTE: for ItemDelegateOverlayContainer, unimplemented:

◆ setAllOverlaysActive()

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

◆ setAnimationState()

void Digikam::VersionsDelegate::setAnimationState ( int  animationState)

◆ setThumbnailSize()

void Digikam::VersionsDelegate::setThumbnailSize ( int  size) const

◆ setViewOnAllOverlays()

◆ sizeHint()

QSize Digikam::VersionsDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

◆ thumbnailSize()

int Digikam::VersionsDelegate::thumbnailSize ( ) const

◆ visualChange

void Digikam::VersionsDelegate::visualChange ( )
signal

Member Data Documentation

◆ m_overlays

Property Documentation

◆ animationState

int Digikam::VersionsDelegate::animationState
readwrite

Referenced by setAnimationState().


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