Changeset View
Changeset View
Standalone View
Standalone View
src/QuickEditor/QuickEditor.h
Show All 23 Lines | |||||
24 | #include <QPainter> | 24 | #include <QPainter> | ||
25 | #include <QStaticText> | 25 | #include <QStaticText> | ||
26 | #include <QWidget> | 26 | #include <QWidget> | ||
27 | #include <utility> | 27 | #include <utility> | ||
28 | #include <vector> | 28 | #include <vector> | ||
29 | 29 | | |||
30 | class QMouseEvent; | 30 | class QMouseEvent; | ||
31 | 31 | | |||
32 | namespace KWayland { | ||||
33 | namespace Client { | ||||
34 | class PlasmaShell; | ||||
35 | } | ||||
36 | } | ||||
37 | | ||||
32 | class QuickEditor: public QWidget | 38 | class QuickEditor: public QWidget | ||
33 | { | 39 | { | ||
34 | Q_OBJECT | 40 | Q_OBJECT | ||
35 | 41 | | |||
36 | public: | 42 | public: | ||
37 | 43 | | |||
38 | explicit QuickEditor(const QPixmap &thePixmap, QWidget *parent = nullptr); | 44 | explicit QuickEditor(const QPixmap &thePixmap, KWayland::Client::PlasmaShell *plasmashell, QWidget *parent = nullptr); | ||
39 | virtual ~QuickEditor() = default; | 45 | virtual ~QuickEditor() = default; | ||
40 | 46 | | |||
41 | private: | 47 | private: | ||
42 | 48 | | |||
43 | enum MouseState : short { | 49 | enum MouseState : short { | ||
44 | None = 0, // 0000 | 50 | None = 0, // 0000 | ||
45 | Inside = 1 << 0, // 0001 | 51 | Inside = 1 << 0, // 0001 | ||
46 | Outside = 1 << 1, // 0010 | 52 | Outside = 1 << 1, // 0010 | ||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |