From 5d815d744f2888b9203403083b60367c08aa266b Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Wed, 15 Feb 2017 12:07:06 +0000 Subject: [PATCH] Overview Performance Issues on Drag .. drag animation for tile shrink is very slow on my MBP. Trying to get to the bottom of why. It may be a HW issue with my PC. --- src/Charts/OverviewWindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Charts/OverviewWindow.cpp b/src/Charts/OverviewWindow.cpp index 101587ac1..12705d6db 100644 --- a/src/Charts/OverviewWindow.cpp +++ b/src/Charts/OverviewWindow.cpp @@ -540,7 +540,6 @@ Card::geometryChanged() { // disable animation when changing geometry chart->setAnimationOptions(QChart::NoAnimation); chart->setGeometry(20,20+(ROWHEIGHT*2), geom.width()-40, geom.height()-(40+(ROWHEIGHT*2))); - chart->update(); } if (type == METRIC) { @@ -930,8 +929,11 @@ OverviewWindow::setViewRect(QRectF rect) bool OverviewWindow::eventFilter(QObject *, QEvent *event) { - if (block) return false; - + if (block || (event->type() != QEvent::KeyPress && event->type() != QEvent::GraphicsSceneWheel && + event->type() != QEvent::GraphicsSceneMousePress && event->type() != QEvent::GraphicsSceneMouseRelease && + event->type() != QEvent::GraphicsSceneMouseMove)) { + return false; + } block = true; bool returning = false;