Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Remove handling of QEvent::Gesture

Dmitry Kazakov48b291e6da91
diff --git a/libs/ui/input/kis_pan_action.cpp b/libs/ui/input/kis_pan_action.cpp
index 1251b07850..3bf51c105f 100644
--- a/libs/ui/input/kis_pan_action.cpp
+++ b/libs/ui/input/kis_pan_action.cpp
@@ -159,14 +159,6 @@ void KisPanAction::inputEvent(QEvent *event)
}
switch (event->type()) {
- case QEvent::Gesture: {
- QGestureEvent *gevent = static_cast<QGestureEvent*>(event);
- if (gevent->activeGestures().at(0)->gestureType() == Qt::PanGesture) {
- QPanGesture *pan = static_cast<QPanGesture*>(gevent->activeGestures().at(0));
- inputManager()->canvas()->canvasController()->pan(-pan->delta().toPoint() * 0.2);
- }
- return;
- }
case QEvent::TouchUpdate: {
QTouchEvent *tevent = static_cast<QTouchEvent*>(event);
int newTouchPointsCount;