Version: 9.12.0
QtxToolTip Class Reference

#include <QtxToolTip.h>

Inheritance diagram for QtxToolTip:
Inheritance graph

Signals

void maybeTip (QPoint, QString &, QFont &, QRect &, QRect &)
 

Public Member Functions

 QtxToolTip (QWidget *=0)
 
virtual ~QtxToolTip ()
 
void hideTip ()
 
virtual void showTip (const QPoint &aPos, const QString &text, const QRect &aWidgetRegion)
 
virtual void showTip (const QRect &aRegion, const QString &text, const QRect &aWidgetRegion)
 
virtual bool eventFilter (QObject *o, QEvent *e)
 
void setWakeUpDelayTime (int)
 
void setShowDelayTime (int)
 
int wakeUpDelayTime () const
 
int showDelayTime () const
 

Protected Slots

void onSleepTimeOut ()
 
void onWakeUpTimeOut ()
 

Protected Member Functions

virtual void maybeTip (const QPoint &)
 
virtual void mousePressEvent (QMouseEvent *)
 
virtual void mouseDoubleClickEvent (QMouseEvent *)
 
QTimer * sleepTimer () const
 
QTimer * wakeUpTimer () const
 

Private Attributes

QTimer * myWakeUpTimer
 
QTimer * mySleepTimer
 
QRect myWidgetRegion
 
int myShowDelayTime
 
int myWakeUpDelayTime
 

Constructor & Destructor Documentation

◆ QtxToolTip()

QtxToolTip::QtxToolTip ( QWidget parent = 0)

◆ ~QtxToolTip()

QtxToolTip::~QtxToolTip ( )
virtual

Destructor

Member Function Documentation

◆ eventFilter()

bool QtxToolTip::eventFilter ( QObject o,
QEvent e 
)
virtual

Custom event filter

Reimplemented in Plot2d_ToolTip.

References hideTip(), myWakeUpDelayTime, myWakeUpTimer, and myWidgetRegion.

◆ hideTip()

void QtxToolTip::hideTip ( )

Hides tooltip

References mySleepTimer, and myWidgetRegion.

◆ maybeTip() [1/2]

void QtxToolTip::maybeTip ( const QPoint &  pos)
protectedvirtual

It is called when there is a possibility that a tool tip should be shown and must decide whether there is a tool tip for the point p in the widget that this QToolTip object relates to

Parameters
pos- position

References maybeTip(), and showTip().

◆ maybeTip [2/2]

void QtxToolTip::maybeTip ( QPoint  ,
QString &  ,
QFont &  ,
QRect &  ,
QRect &   
)
signal

◆ mouseDoubleClickEvent()

void QtxToolTip::mouseDoubleClickEvent ( QMouseEvent *  e)
protectedvirtual

Custom mouse double click event handler

References hideTip().

◆ mousePressEvent()

void QtxToolTip::mousePressEvent ( QMouseEvent *  e)
protectedvirtual

Custom mouse press event handler

References hideTip().

◆ onSleepTimeOut

void QtxToolTip::onSleepTimeOut ( )
protectedslot

SLOT: called when sleep time is out

References hideTip(), and mySleepTimer.

◆ onWakeUpTimeOut

void QtxToolTip::onWakeUpTimeOut ( )
protectedslot

SLOT: called when wake time is out

References maybeTip(), and myWakeUpTimer.

◆ setShowDelayTime()

void QtxToolTip::setShowDelayTime ( int  theTime)

Sets show delay time

Parameters
theTime

References myShowDelayTime.

◆ setWakeUpDelayTime()

void QtxToolTip::setWakeUpDelayTime ( int  theTime)

Sets wake delay time

Parameters
theTime

References myWakeUpDelayTime.

◆ showDelayTime()

int QtxToolTip::showDelayTime ( ) const
inline

◆ showTip() [1/2]

void QtxToolTip::showTip ( const QPoint &  aPos,
const QString &  text,
const QRect &  aWidgetRegion 
)
virtual

Shows tool tip

Parameters
aPos- position
text- tooltip text
aWidgetRegion- rectangle

◆ showTip() [2/2]

void QtxToolTip::showTip ( const QRect &  aRegion,
const QString &  text,
const QRect &  aWidgetRegion 
)
virtual

Shows tool tip

Parameters
aRegion- tooltip region
text- tooltip text
aWidgetRegion- widget rectangle

References myShowDelayTime, mySleepTimer, and myWidgetRegion.

◆ sleepTimer()

QTimer * QtxToolTip::sleepTimer ( ) const
protected
Returns
timer measuring time of sleeping

References mySleepTimer.

◆ wakeUpDelayTime()

int QtxToolTip::wakeUpDelayTime ( ) const
inline

◆ wakeUpTimer()

QTimer * QtxToolTip::wakeUpTimer ( ) const
protected
Returns
timer measuring time of waking up

References myWakeUpTimer.

Member Data Documentation

◆ myShowDelayTime

int QtxToolTip::myShowDelayTime
private

◆ mySleepTimer

QTimer* QtxToolTip::mySleepTimer
private

◆ myWakeUpDelayTime

int QtxToolTip::myWakeUpDelayTime
private

◆ myWakeUpTimer

QTimer* QtxToolTip::myWakeUpTimer
private

◆ myWidgetRegion

QRect QtxToolTip::myWidgetRegion
private

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