Krita Source Code Documentation
Loading...
Searching...
No Matches
KisCanvasNavigationActionStrategyTouch.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISCANVASNAVIGATIONACTIONSTRATEGYTOUCH_H
8#define KISCANVASNAVIGATIONACTIONSTRATEGYTOUCH_H
9
11
13
14#include <QPointF>
15
16class QEvent;
17class KisCanvas2;
18class QTouchEvent;
19
21{
22public:
23 KisCanvasNavigationActionStrategyTouch(Flags flags, const QTouchEvent *startEvent, KisCanvas2 *canvas);
24
25 bool supportsEvent(QEvent* event) const override;
26 void inputEvent(QEvent* event) override;
27
28private:
30
31 qreal m_nonRoundedZoom {0.0};
33
35 qreal m_lastDistance {0.0};
36};
37
38
39
40#endif // KISCANVASNAVIGATIONACTIONSTRATEGYTOUCH_H
KisCanvasNavigationActionStrategyTouch(Flags flags, const QTouchEvent *startEvent, KisCanvas2 *canvas)