From 211fdca694cc0f67fffde8f099fa4c9f21587a3f Mon Sep 17 00:00:00 2001 From: mkr Date: Mon, 23 Apr 2007 11:49:50 +0000 Subject: [PATCH] Modification to avoid flicker on zoom in/out operation. --- src/QxGraph/QxGraph_CanvasView.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/QxGraph/QxGraph_CanvasView.cxx b/src/QxGraph/QxGraph_CanvasView.cxx index fdc5c6b5b..7cfc82d6d 100644 --- a/src/QxGraph/QxGraph_CanvasView.cxx +++ b/src/QxGraph/QxGraph_CanvasView.cxx @@ -109,7 +109,7 @@ const char* imageCrossCursor[] = { Constructor */ QxGraph_CanvasView::QxGraph_CanvasView(QxGraph_Canvas* theCanvas, QxGraph_ViewWindow* theViewWindow) : - QCanvasView(theCanvas, theViewWindow), + QCanvasView(theCanvas, theViewWindow, 0, Qt::WRepaintNoErase), myCurrentItem(0), myHilightedItem(0), mySelectedItem(0) @@ -242,7 +242,7 @@ void QxGraph_CanvasView::contentsMouseMoveEvent(QMouseEvent* theEvent) QWMatrix m = worldMatrix(); m.scale(s, s); setWorldMatrix(m); - + // remember the canvas view's current transformation matrix in all canvas items QCanvasItemList aList = canvas()->allItems(); for (QCanvasItemList::Iterator it = aList.begin(); it != aList.end(); ++it) { -- 2.39.2