#include <QtxToolTip.h>

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 |
| QtxToolTip::QtxToolTip | ( | QWidget * | parent = 0 | ) |
Constructor
References myShowDelayTime, mySleepTimer, myWakeUpDelayTime, myWakeUpTimer, myWidgetRegion, onSleepTimeOut(), and onWakeUpTimeOut().
| QtxToolTip::~QtxToolTip | ( | ) | [virtual] |
Destructor
| void QtxToolTip::hideTip | ( | ) |
Hides tooltip
References mySleepTimer, and myWidgetRegion.
| void QtxToolTip::showTip | ( | const QPoint & | aPos, |
| const QString & | text, | ||
| const QRect & | aWidgetRegion | ||
| ) | [virtual] |
Shows tool tip
| aPos | - position |
| text | - tooltip text |
| aWidgetRegion | - rectangle |
| void QtxToolTip::showTip | ( | const QRect & | aRegion, |
| const QString & | text, | ||
| const QRect & | aWidgetRegion | ||
| ) | [virtual] |
Shows tool tip
| aRegion | - tooltip region |
| text | - tooltip text |
| aWidgetRegion | - widget rectangle |
References myShowDelayTime, mySleepTimer, and myWidgetRegion.
Custom event filter
Reimplemented in Plot2d_ToolTip.
References hideTip(), myWakeUpDelayTime, myWakeUpTimer, and myWidgetRegion.
| void QtxToolTip::setWakeUpDelayTime | ( | int | theTime | ) |
| void QtxToolTip::setShowDelayTime | ( | int | theTime | ) |
| int QtxToolTip.wakeUpDelayTime | ( | ) | const |
| int QtxToolTip.showDelayTime | ( | ) | const |
| void QtxToolTip.maybeTip | ( | QPoint | , |
| QString & | , | ||
| QFont & | , | ||
| QRect & | , | ||
| QRect & | |||
| ) | [signal] |
| void QtxToolTip::onSleepTimeOut | ( | ) | [protected, slot] |
SLOT: called when sleep time is out
References hideTip(), and mySleepTimer.
| void QtxToolTip::onWakeUpTimeOut | ( | ) | [protected, slot] |
SLOT: called when wake time is out
References maybeTip(), and myWakeUpTimer.
| void QtxToolTip::maybeTip | ( | const QPoint & | pos | ) | [protected, virtual] |
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
| pos | - position |
References maybeTip(), and showTip().
| void QtxToolTip::mousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Custom mouse press event handler
References hideTip().
| void QtxToolTip::mouseDoubleClickEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Custom mouse double click event handler
References hideTip().
| QTimer * QtxToolTip::sleepTimer | ( | ) | const [protected] |
References mySleepTimer.
| QTimer * QtxToolTip::wakeUpTimer | ( | ) | const [protected] |
References myWakeUpTimer.
QTimer* QtxToolTip.myWakeUpTimer [private] |
QTimer* QtxToolTip.mySleepTimer [private] |
QRect QtxToolTip.myWidgetRegion [private] |
int QtxToolTip.myShowDelayTime [private] |
int QtxToolTip.myWakeUpDelayTime [private] |