Changeset View
Changeset View
Standalone View
Standalone View
src/QuickEditor/QuickEditor.h
Context not available. | |||||
31 | 31 | | |||
---|---|---|---|---|---|
32 | class QMouseEvent; | 32 | class QMouseEvent; | ||
33 | 33 | | |||
34 | class QuickEditor : public QWidget | 34 | class QuickEditor: public QWidget | ||
35 | { | 35 | { | ||
36 | Q_OBJECT | 36 | Q_OBJECT | ||
37 | 37 | | |||
38 | public: | 38 | public: | ||
39 | explicit QuickEditor(const QPixmap &pixmap); | 39 | | ||
40 | explicit QuickEditor(const QPixmap &thePixmap, QWidget *parent = nullptr); | ||||
41 | virtual ~QuickEditor() = default; | ||||
42 | | ||||
43 | private: | ||||
40 | 44 | | |||
41 | private: | | |||
42 | enum MouseState : short { | 45 | enum MouseState : short { | ||
43 | None = 0, // 0000 | 46 | None = 0, // 0000 | ||
44 | Inside = 1 << 0, // 0001 | 47 | Inside = 1 << 0, // 0001 | ||
Context not available. | |||||
130 | QRect mPrimaryScreenGeo; | 133 | QRect mPrimaryScreenGeo; | ||
131 | int mbottomHelpLength; | 134 | int mbottomHelpLength; | ||
132 | 135 | | |||
133 | Q_SIGNALS: | 136 | Q_SIGNALS: | ||
134 | void grabDone(const QPixmap &pixmap); | 137 | | ||
138 | void grabDone(const QPixmap &thePixmap); | ||||
135 | void grabCancelled(); | 139 | void grabCancelled(); | ||
136 | }; | 140 | }; | ||
137 | 141 | | |||
Context not available. |