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++
Move EventBlockingReasons into KisInputEventsEater
Dmitry Kazakov9770eba76dbd
diff --git a/libs/ui/input/KisInputEventsEater.h b/libs/ui/input/KisInputEventsEater.hindex 1bf931f3e5..9feac92e8d 100644--- a/libs/ui/input/KisInputEventsEater.h+++ b/libs/ui/input/KisInputEventsEater.h@@ -12,21 +12,21 @@class KisToolInvocationAction;-enum EventBlockingReason {- NotBlocked = 0x0,- BlockedByTabletProximity = 0x01,- BlockedByTabletHover = 0x02,- BlockedByTabletPress = 0x04,- BlockedByTouchPress = 0x08,- BlockedByNextPressSuppression = 0x10,- BlockedByButtonsWorkaround = 0x20,- BlockedBySynthetic = 0x40-};-Q_DECLARE_FLAGS(EventBlockingReasons, EventBlockingReason)-Q_DECLARE_OPERATORS_FOR_FLAGS(EventBlockingReasons)class KRITAUI_EXPORT KisInputEventsEater{+public:+ enum EventBlockingReason {+ NotBlocked = 0x0,+ BlockedByTabletProximity = 0x01,+ BlockedByTabletHover = 0x02,+ BlockedByTabletPress = 0x04,+ BlockedByTouchPress = 0x08,+ BlockedByNextPressSuppression = 0x10,+ BlockedByButtonsWorkaround = 0x20,+ BlockedBySynthetic = 0x40+ };+ Q_DECLARE_FLAGS(EventBlockingReasons, EventBlockingReason)public:KisInputEventsEater();@@ -91,3 +91,5 @@ private:QEvent::Type eventType,const QLatin1String &comment = QLatin1String());};++Q_DECLARE_OPERATORS_FOR_FLAGS(KisInputEventsEater::EventBlockingReasons)\ No newline at end of file