Version: 6.3.1
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes

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

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

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.

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

Custom event filter

Reimplemented in Plot2d_ToolTip.

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

void QtxToolTip::setWakeUpDelayTime ( int  theTime)

Sets wake delay time

Parameters:
theTime

References myWakeUpDelayTime.

void QtxToolTip::setShowDelayTime ( int  theTime)

Sets show delay time

Parameters:
theTime

References myShowDelayTime.

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

Parameters:
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]
Returns:
timer measuring time of sleeping

References mySleepTimer.

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

References myWakeUpTimer.


Field Documentation

QTimer* QtxToolTip.myWakeUpTimer [private]
QTimer* QtxToolTip.mySleepTimer [private]
QRect QtxToolTip.myWidgetRegion [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS