From 82300aabf82df8b81cb81e1729911a868aac98e5 2013-06-14 11:29:36 From: Miikka Heikkinen Date: 2013-06-14 11:29:36 Subject: [PATCH] Fix zoomlinechart x-axis pan direction Change-Id: I92765fbb1ac11596dd3b76edc5e72daf374ad7f5 Reviewed-by: Mika Salmela --- diff --git a/examples/zoomlinechart/chart.cpp b/examples/zoomlinechart/chart.cpp index fc873c3..dbedb8d 100644 --- a/examples/zoomlinechart/chart.cpp +++ b/examples/zoomlinechart/chart.cpp @@ -49,7 +49,7 @@ bool Chart::gestureEvent(QGestureEvent *event) { if (QGesture *gesture = event->gesture(Qt::PanGesture)) { QPanGesture *pan = static_cast(gesture); - QChart::scroll(pan->delta().x(), pan->delta().y()); + QChart::scroll(-(pan->delta().x()), pan->delta().y()); } if (QGesture *gesture = event->gesture(Qt::PinchGesture)) {