From 0d3aa0d4e8db9e09577703ca08f01cd3dccf4e06 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Wed, 27 Aug 2003 16:01:27 +0000 Subject: [PATCH] Normalize the use of setMouseTracking(true). --- Packages/Qt_widget/include/CGAL/IO/Qt_widget_get_polygon.h | 1 - Packages/Qt_widget/src/CGALQt/Qt_widget_standard_toolbar.C | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Packages/Qt_widget/include/CGAL/IO/Qt_widget_get_polygon.h b/Packages/Qt_widget/include/CGAL/IO/Qt_widget_get_polygon.h index 834b599f5d8..813db6b64cd 100644 --- a/Packages/Qt_widget/include/CGAL/IO/Qt_widget_get_polygon.h +++ b/Packages/Qt_widget/include/CGAL/IO/Qt_widget_get_polygon.h @@ -84,7 +84,6 @@ protected: if(!active) { active=true; - widget->setMouseTracking(TRUE); last_of_poly = Point_2(x, y); poly.push_back(Point_2(x, y)); } else{ diff --git a/Packages/Qt_widget/src/CGALQt/Qt_widget_standard_toolbar.C b/Packages/Qt_widget/src/CGALQt/Qt_widget_standard_toolbar.C index 3a782a228ac..ad58f02a5fd 100644 --- a/Packages/Qt_widget/src/CGALQt/Qt_widget_standard_toolbar.C +++ b/Packages/Qt_widget/src/CGALQt/Qt_widget_standard_toolbar.C @@ -54,7 +54,6 @@ namespace CGAL { QToolBar(mw, name), widget(w) { - w->setMouseTracking(true); setLabel("Qt_widget standard toolbar"); fill_toolbar(mw); }; @@ -67,7 +66,6 @@ namespace CGAL { QToolBar("Qt_widget standard toolbar", mw, parent, newLine, name), widget(w) { - w->setMouseTracking(true); fill_toolbar(mw); }; @@ -98,6 +96,7 @@ namespace CGAL { "showcoordlayer"); widget->attach_standard(showcoordlayer); showcoordlayer->does_eat_events = false; + widget->setMouseTracking(true); } QIconSet arrow_pixmap(QPixmap( (const char**)arrow_small_xpm ),