Commit a8524451 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Add hi-res input events support to Pan/Zoom/Rotate

CCBUG:409460
parent ce83d7bc
......@@ -196,3 +196,8 @@ KisInputActionGroup KisPanAction::inputActionGroup(int shortcut) const
Q_UNUSED(shortcut);
return ViewTransformActionGroup;
}
bool KisPanAction::supportsHiResInputEvents() const
{
return true;
}
......@@ -57,6 +57,7 @@ public:
bool isShortcutRequired(int shortcut) const override;
KisInputActionGroup inputActionGroup(int shortcut) const override;
bool supportsHiResInputEvents() const;
private:
class Private;
......
......@@ -187,3 +187,8 @@ KisInputActionGroup KisRotateCanvasAction::inputActionGroup(int shortcut) const
Q_UNUSED(shortcut);
return ViewTransformActionGroup;
}
bool KisRotateCanvasAction::supportsHiResInputEvents() const
{
return true;
}
......@@ -53,6 +53,7 @@ public:
void inputEvent(QEvent* event) override;
KisInputActionGroup inputActionGroup(int shortcut) const override;
bool supportsHiResInputEvents() const;
private:
class Private;
......
......@@ -302,6 +302,11 @@ bool KisZoomAction::isShortcutRequired(int shortcut) const
return shortcut == ZoomModeShortcut;
}
bool KisZoomAction::supportsHiResInputEvents() const
{
return true;
}
KisInputActionGroup KisZoomAction::inputActionGroup(int shortcut) const
{
Q_UNUSED(shortcut);
......
......@@ -56,6 +56,7 @@ public:
void cursorMoved(const QPointF &lastPos, const QPointF &pos) override;
bool isShortcutRequired(int shortcut) const override;
bool supportsHiResInputEvents() const override;
KisInputActionGroup inputActionGroup(int shortcut) const override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment