Gui::ToolTip Class Reference

Qt's tooltip does not work as expected with some classes, e.g. More...

#include <Widgets.h>

List of all members.

Static Public Member Functions

static void showText (const QPoint &pos, const QString &text, QWidget *w=0)

Protected Member Functions

bool eventFilter (QObject *o, QEvent *e)
void installEventFilter ()
void removeEventFilter ()
void timerEvent (QTimerEvent *e)
 ToolTip ()
virtual ~ToolTip ()

Static Protected Member Functions

static ToolTip * instance ()

Detailed Description

Qt's tooltip does not work as expected with some classes, e.g.

when showing it in the 3d view it immediately receives a timer event to destroy itself. This class is thought to circumvent this behaviour by filtering the internal timer events.

Author:
Werner Mayer

Definition at line 240 of file Widgets.h.


Constructor & Destructor Documentation

ToolTip::ToolTip (  )  [protected]

Definition at line 544 of file Widgets.cpp.

Referenced by instance().

ToolTip::~ToolTip (  )  [protected, virtual]

Definition at line 548 of file Widgets.cpp.


Member Function Documentation

bool ToolTip::eventFilter ( QObject *  o,
QEvent *  e 
) [protected]

Definition at line 595 of file Widgets.cpp.

References removeEventFilter().

void ToolTip::installEventFilter (  )  [protected]

Definition at line 552 of file Widgets.cpp.

Referenced by showText().

ToolTip * ToolTip::instance ( void   )  [static, protected]

Definition at line 537 of file Widgets.cpp.

References ToolTip().

Referenced by showText().

void ToolTip::removeEventFilter (  )  [protected]

Definition at line 560 of file Widgets.cpp.

Referenced by eventFilter().

void ToolTip::showText ( const QPoint &  pos,
const QString &  text,
QWidget *  w = 0 
) [static]
void ToolTip::timerEvent ( QTimerEvent *  e  )  [protected]

Definition at line 586 of file Widgets.cpp.

References showText().


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

Generated on Wed Nov 23 19:02:04 2011 for FreeCAD by  doxygen 1.6.1