]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Creation of QtxToolTip* myObjectTip has been uncommented
authorouv <ouv@opencascade.com>
Tue, 2 Sep 2008 07:18:04 +0000 (07:18 +0000)
committerouv <ouv@opencascade.com>
Tue, 2 Sep 2008 07:18:04 +0000 (07:18 +0000)
src/GLViewer/GLViewer_ViewPort2d.cxx

index 3293fd8ec5d637391394543aedc41a362a382d4b..69392f012dd1a5a793c6574de098511b31df33d8 100644 (file)
@@ -34,8 +34,7 @@
 #include "GLViewer_Grid.h"
 #include "GLViewer_Drawer.h"
 
-// TODO: Porting to Qt4
-//#include <QtxToolTip.h>
+#include <QtxToolTip.h>
 
 #include <QHBoxLayout>
 #include <QMouseEvent>
@@ -108,12 +107,11 @@ GLViewer_ViewPort2d::GLViewer_ViewPort2d( QWidget* parent, GLViewer_ViewFrame* t
   mypFirstPoint = NULL;
   mypLastPoint = NULL;
 
-    // TODO: Porting to Qt4
-    /*myObjectTip = new QtxToolTip( myGLWidget );///GLViewer_ObjectTip( this );
-    myObjectTip->setShowDelayTime( 60000 );
-    connect( myObjectTip, SIGNAL( maybeTip( QPoint, QString&, QFont&, QRect&, QRect& ) ),
-             this, SLOT( onMaybeTip( QPoint, QString&, QFont&, QRect&, QRect& ) ) );*/
-//    myGLWidget->installEventFilter( myObjectTip );
+  myObjectTip = new QtxToolTip( myGLWidget );///GLViewer_ObjectTip( this );
+  myObjectTip->setShowDelayTime( 60000 );
+  connect( myObjectTip, SIGNAL( maybeTip( QPoint, QString&, QFont&, QRect&, QRect& ) ),
+           this, SLOT( onMaybeTip( QPoint, QString&, QFont&, QRect&, QRect& ) ) );
+  //myGLWidget->installEventFilter( myObjectTip );
 }
 
 /*!