Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ( QWidget parent = 0)
QtxToolTip::~QtxToolTip ( )
virtual

Destructor

Member Function Documentation

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

Custom event filter

Reimplemented in Plot2d_ToolTip.

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

void QtxToolTip::hideTip ( )

Hides tooltip

References mySleepTimer, and myWidgetRegion.

void QtxToolTip::maybeTip ( QPoint  ,
QString &  ,
QFont &  ,
QRect &  ,
QRect &   
)
signal
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().

void QtxToolTip::mouseDoubleClickEvent ( QMouseEvent *  e)
protectedvirtual

Custom mouse double click event handler

References hideTip().

void QtxToolTip::mousePressEvent ( QMouseEvent *  e)
protectedvirtual

Custom mouse press event handler

References hideTip().

void QtxToolTip::onSleepTimeOut ( )
protectedslot

SLOT: called when sleep time is out

References hideTip(), and mySleepTimer.

void QtxToolTip::onWakeUpTimeOut ( )
protectedslot

SLOT: called when wake time is out

References maybeTip(), and myWakeUpTimer.

void QtxToolTip::setShowDelayTime ( int  theTime)

Sets show delay time

Parameters
theTime

References myShowDelayTime.

void QtxToolTip::setWakeUpDelayTime ( int  theTime)

Sets wake delay time

Parameters
theTime

References myWakeUpDelayTime.

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

Shows tool tip

Parameters
aPos- position
text- tooltip text
aWidgetRegion- rectangle
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.

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

References mySleepTimer.

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

References myWakeUpTimer.

Member Data Documentation

int QtxToolTip::myShowDelayTime
private
QTimer* QtxToolTip::mySleepTimer
private
int QtxToolTip::myWakeUpDelayTime
private
QTimer* QtxToolTip::myWakeUpTimer
private
QRect QtxToolTip::myWidgetRegion
private

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