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

Public Member Functions

QModelIndex index () const
 
void initIcon ()
 
 ItemSelectionOverlayButton (QAbstractItemView *const parentView)
 
void reset ()
 
void setIndex (const QModelIndex &index)
 
void setVisible (bool visible) override
 
QSize sizeHint () const override
 

Protected Slots

void refreshIcon ()
 
void setFadingValue (int value)
 
void startFading ()
 
void stopFading ()
 

Protected Member Functions

void enterEvent (QEvent *event)
 
QIcon icon () override
 
void leaveEvent (QEvent *event)
 
void paintEvent (QPaintEvent *event)
 
void setup ()
 
void updateToolTip () override
 

Protected Attributes

QTimeLine * m_fadingTimeLine
 
int m_fadingValue
 
QIcon m_icon
 
QPersistentModelIndex m_index
 
bool m_isHovered
 

Constructor & Destructor Documentation

◆ ItemSelectionOverlayButton()

Digikam::ItemSelectionOverlayButton::ItemSelectionOverlayButton ( QAbstractItemView *const  parentView)
explicit

Member Function Documentation

◆ enterEvent()

void Digikam::ItemViewHoverButton::enterEvent ( QEvent *  event)
protectedinherited

◆ icon()

QIcon Digikam::ItemSelectionOverlayButton::icon ( )
overrideprotectedvirtual

Return your icon here. Will be queried again on toggle.

Implements Digikam::ItemViewHoverButton.

◆ index()

◆ initIcon()

void Digikam::ItemViewHoverButton::initIcon ( )
inherited

◆ leaveEvent()

void Digikam::ItemViewHoverButton::leaveEvent ( QEvent *  event)
protectedinherited

◆ paintEvent()

void Digikam::ItemViewHoverButton::paintEvent ( QPaintEvent *  event)
protectedinherited

◆ refreshIcon

void Digikam::ItemViewHoverButton::refreshIcon ( )
protectedslotinherited

◆ reset()

void Digikam::ItemViewHoverButton::reset ( )
inherited

◆ setFadingValue

void Digikam::ItemViewHoverButton::setFadingValue ( int  value)
protectedslotinherited

◆ setIndex()

void Digikam::ItemViewHoverButton::setIndex ( const QModelIndex &  index)
inherited

◆ setup()

◆ setVisible()

void Digikam::ItemViewHoverButton::setVisible ( bool  visible)
overrideinherited

◆ sizeHint()

QSize Digikam::ItemSelectionOverlayButton::sizeHint ( ) const
overridevirtual

Reimplement to match the size of your icon

Implements Digikam::ItemViewHoverButton.

◆ startFading

void Digikam::ItemViewHoverButton::startFading ( )
protectedslotinherited

◆ stopFading

void Digikam::ItemViewHoverButton::stopFading ( )
protectedslotinherited

◆ updateToolTip()

void Digikam::ItemSelectionOverlayButton::updateToolTip ( )
overrideprotectedvirtual

Optionally update tooltip here. Will be called again on state change.

Reimplemented from Digikam::ItemViewHoverButton.

Member Data Documentation

◆ m_fadingTimeLine

◆ m_fadingValue

◆ m_icon

QIcon Digikam::ItemViewHoverButton::m_icon
protectedinherited

◆ m_index

QPersistentModelIndex Digikam::ItemViewHoverButton::m_index
protectedinherited

◆ m_isHovered

bool Digikam::ItemViewHoverButton::m_isHovered
protectedinherited

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