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

Public Member Functions

 DCursorTracker (const QString &txt, QWidget *const parent, Qt::Alignment align=Qt::AlignCenter)
 
void refresh ()
 
void setEnable (bool b)
 
void setKeepOpen (bool b)
 
void setText (const QString &txt)
 
void setTrackerAlignment (Qt::Alignment alignment)
 
void triggerAutoShow (int timeout=2000)
 
 ~DCursorTracker () override
 

Protected Member Functions

bool eventFilter (QObject *, QEvent *) override
 
void paintEvent (QPaintEvent *) override
 

Detailed Description

This class implements a window which looks like a tool tip. It will follow the cursor when it's over a specified widget.

Constructor & Destructor Documentation

◆ DCursorTracker()

Digikam::DCursorTracker::DCursorTracker ( const QString &  txt,
QWidget *const  parent,
Qt::Alignment  align = Qt::AlignCenter 
)
explicit

◆ ~DCursorTracker()

Digikam::DCursorTracker::~DCursorTracker ( )
override

Member Function Documentation

◆ eventFilter()

bool Digikam::DCursorTracker::eventFilter ( QObject *  object,
QEvent *  e 
)
overrideprotected

◆ paintEvent()

void Digikam::DCursorTracker::paintEvent ( QPaintEvent *  e)
overrideprotected

◆ refresh()

void Digikam::DCursorTracker::refresh ( )

◆ setEnable()

void Digikam::DCursorTracker::setEnable ( bool  b)

◆ setKeepOpen()

void Digikam::DCursorTracker::setKeepOpen ( bool  b)

◆ setText()

void Digikam::DCursorTracker::setText ( const QString &  txt)

Overload to make sure the widget size is correct

◆ setTrackerAlignment()

void Digikam::DCursorTracker::setTrackerAlignment ( Qt::Alignment  alignment)

◆ triggerAutoShow()

void Digikam::DCursorTracker::triggerAutoShow ( int  timeout = 2000)

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