1 // File: GLViewer_ToolTip.h
2 // Created: March, 2005
4 // Copyright (C) CEA 2005
6 #ifndef GLVIEWER_TOOLTIP_H
7 #define GLVIEWER_TOOLTIP_H
11 //#include <qtooltip.h>
12 //#include <QtxToolTip.h>
17 class GLViewer_ViewPort2d;
19 /***************************************************************************
20 ** Class: GLViewer_ObjectTip
21 ** Descr: ToolTip of GLViewer_Objects
23 ** Created: UI team, 28.03.05
24 ****************************************************************************/
25 class GLVIEWER_API GLViewer_ObjectTip: public QObject//QToolTip//QtxToolTip
29 GLViewer_ObjectTip( GLViewer_ViewPort2d* );
30 ~GLViewer_ObjectTip();
33 // virtual void maybeTip( const QPoint& p );
34 virtual bool eventFilter( QObject*, QEvent* );
36 virtual bool maybeTip( const QPoint&);
38 void setText( const QString& theText ){ myText = theText; }
39 QString getText() const { return myText; }
46 void hideTipAndSleep();
47 void wakeup( int mseconds = TIP_TIME );
53 GLViewer_ViewPort2d* mypViewPort;
62 #endif //GLVIEWER_TOOLTIP_H