From db13367e495bc954e3cbd28587eb95093233b2dd Mon Sep 17 00:00:00 2001 From: abd Date: Tue, 20 Dec 2005 06:20:44 +0000 Subject: [PATCH] Added signal for end of wheel operation --- src/GLViewer/GLViewer_Viewer2d.cxx | 2 ++ src/GLViewer/GLViewer_Viewer2d.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/GLViewer/GLViewer_Viewer2d.cxx b/src/GLViewer/GLViewer_Viewer2d.cxx index c7a1d297d..f98f5e2ae 100644 --- a/src/GLViewer/GLViewer_Viewer2d.cxx +++ b/src/GLViewer/GLViewer_Viewer2d.cxx @@ -969,6 +969,8 @@ void GLViewer_Viewer2d::startOperations( QWheelEvent* e ) update = anObject->updateZoom( zoomIn ) || update; } + emit wheelZoomChange( zoomIn ); + if( update ) updateAll(); } diff --git a/src/GLViewer/GLViewer_Viewer2d.h b/src/GLViewer/GLViewer_Viewer2d.h index 94a5bd254..21840335f 100644 --- a/src/GLViewer/GLViewer_Viewer2d.h +++ b/src/GLViewer/GLViewer_Viewer2d.h @@ -180,6 +180,11 @@ public: //! Repaints view \param theView. If \param theView = NULL repaints all views. void repaintView( GLViewer_ViewFrame* theView = NULL, bool makeCurrent = false ); +signals: + //! Signal needs for optimum recompute of zoom depending objects + //! Warning: use recompute without update viewer + void wheelZoomChange( bool ); + public slots: //void onSketchDelObject(); //void onSketchUndoLast(); -- 2.39.2