2 // Author: Sergey TELKOV
13 class QTX_EXPORT QtxToolTip : public QLabel
18 QtxToolTip( QWidget* = 0 );
19 virtual ~QtxToolTip();
23 virtual void showTip( const QPoint& aPos,
24 const QString& text, const QRect& aWidgetRegion );
25 virtual void showTip( const QRect& aRegion,
26 const QString& text, const QRect& aWidgetRegion );
28 virtual bool eventFilter( QObject* o, QEvent* e );
30 void setWakeUpDelayTime( int );
31 void setShowDelayTime( int );
33 int wakeUpDelayTime() const { return myWakeUpDelayTime; }
34 int showDelayTime() const { return myShowDelayTime; }
37 void maybeTip( QPoint, QString&, QFont&, QRect&, QRect& );
40 void onSleepTimeOut();
41 void onWakeUpTimeOut();
44 virtual void maybeTip( const QPoint& );
45 virtual void mousePressEvent( QMouseEvent* );
46 virtual void mouseDoubleClickEvent( QMouseEvent* );
48 QTimer* sleepTimer() const;
49 QTimer* wakeUpTimer() const;
52 QTimer* myWakeUpTimer;
57 int myWakeUpDelayTime;