From d22ea02295111247a39e438d217e241a5b02657d Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 2 Sep 2008 07:18:04 +0000 Subject: [PATCH] Creation of QtxToolTip* myObjectTip has been uncommented --- src/GLViewer/GLViewer_ViewPort2d.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/GLViewer/GLViewer_ViewPort2d.cxx b/src/GLViewer/GLViewer_ViewPort2d.cxx index 3293fd8ec..69392f012 100644 --- a/src/GLViewer/GLViewer_ViewPort2d.cxx +++ b/src/GLViewer/GLViewer_ViewPort2d.cxx @@ -34,8 +34,7 @@ #include "GLViewer_Grid.h" #include "GLViewer_Drawer.h" -// TODO: Porting to Qt4 -//#include +#include #include #include @@ -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 ); } /*! -- 2.39.2