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

Public Member Functions

QModelIndex currentIndex () const
 
 ItemViewToolTip (QAbstractItemView *const view)
 
QAbstractItemModel * model () const
 
void setTipContents (const QString &tipContents)
 
void show (const QStyleOptionViewItem &option, const QModelIndex &index)
 
QString tipContents () override
 
QAbstractItemView * view () const
 
 ~ItemViewToolTip () override
 

Protected Member Functions

bool event (QEvent *) override
 
bool eventFilter (QObject *o, QEvent *e) override
 
void hideEvent (QHideEvent *) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void paintEvent (QPaintEvent *) override
 
void renderArrows ()
 
void reposition ()
 
QRect repositionRect () override
 
void resizeEvent (QResizeEvent *) override
 
bool toolTipIsEmpty () const
 
void updateToolTip ()
 

Constructor & Destructor Documentation

◆ ItemViewToolTip()

Digikam::ItemViewToolTip::ItemViewToolTip ( QAbstractItemView *const  view)
explicit

References view().

◆ ~ItemViewToolTip()

Digikam::ItemViewToolTip::~ItemViewToolTip ( )
override

Member Function Documentation

◆ currentIndex()

QModelIndex Digikam::ItemViewToolTip::currentIndex ( ) const

◆ event()

bool Digikam::DItemToolTip::event ( QEvent *  e)
overrideprotectedinherited

◆ eventFilter()

bool Digikam::ItemViewToolTip::eventFilter ( QObject *  o,
QEvent *  e 
)
overrideprotected

◆ hideEvent()

void Digikam::ItemViewToolTip::hideEvent ( QHideEvent *  )
overrideprotected

◆ model()

QAbstractItemModel * Digikam::ItemViewToolTip::model ( ) const

◆ mouseMoveEvent()

void Digikam::ItemViewToolTip::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected

◆ paintEvent()

void Digikam::DItemToolTip::paintEvent ( QPaintEvent *  e)
overrideprotectedinherited

◆ renderArrows()

void Digikam::DItemToolTip::renderArrows ( )
protectedinherited

◆ reposition()

◆ repositionRect()

QRect Digikam::ItemViewToolTip::repositionRect ( )
overrideprotectedvirtual

Implements Digikam::DItemToolTip.

◆ resizeEvent()

void Digikam::DItemToolTip::resizeEvent ( QResizeEvent *  e)
overrideprotectedinherited

◆ setTipContents()

void Digikam::ItemViewToolTip::setTipContents ( const QString &  tipContents)

◆ show()

void Digikam::ItemViewToolTip::show ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
)

Show the tooltip for the given item. The rect of the given option is taken as area for which the tooltip is shown.

References Digikam::DItemToolTip::reposition(), Digikam::DItemToolTip::toolTipIsEmpty(), and Digikam::DItemToolTip::updateToolTip().

◆ tipContents()

QString Digikam::ItemViewToolTip::tipContents ( )
overridevirtual

Default implementation is based on setTipContents(). Reimplement if you dynamically provide the contents.

Implements Digikam::DItemToolTip.

Referenced by setTipContents().

◆ toolTipIsEmpty()

◆ updateToolTip()

◆ view()

QAbstractItemView * Digikam::ItemViewToolTip::view ( ) const

Referenced by ItemViewToolTip().


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