From 8b352982e99c275bf5367c71204201f41b259a78 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Tue, 19 Aug 2014 16:06:28 +0000 Subject: [PATCH] Refresh diagramview git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3288 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/diagramview.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sources/diagramview.cpp b/sources/diagramview.cpp index 244b45d4f..6c2613f71 100644 --- a/sources/diagramview.cpp +++ b/sources/diagramview.cpp @@ -588,8 +588,7 @@ void DiagramView::wheelEvent(QWheelEvent *e) { QAbstractScrollArea::wheelEvent(e); } #else - if (e->buttons() != Qt::MidButton) { - if (!(e -> modifiers() & Qt::ControlModifier)) { + if (!(e -> modifiers() & Qt::ControlModifier)) { if (e -> delta() > 0){ zoomInSlowly(); } @@ -601,7 +600,6 @@ void DiagramView::wheelEvent(QWheelEvent *e) { QAbstractScrollArea::wheelEvent(e); } } - } #endif }