diff options
Diffstat (limited to 'src/selectionmode/backgroundcolorhelper.h')
| -rw-r--r-- | src/selectionmode/backgroundcolorhelper.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/selectionmode/backgroundcolorhelper.h b/src/selectionmode/backgroundcolorhelper.h index 3450c8e19..4f8ce81f5 100644 --- a/src/selectionmode/backgroundcolorhelper.h +++ b/src/selectionmode/backgroundcolorhelper.h @@ -9,6 +9,7 @@ #define BACKGROUNDCOLORHELPER_H #include <QColor> +#include <QObject> #include <QPointer> #include <memory> @@ -21,8 +22,9 @@ namespace SelectionMode /** * @brief A Singleton class for managing the colors of selection mode widgets. */ -class BackgroundColorHelper +class BackgroundColorHelper : public QObject { + Q_OBJECT public: static BackgroundColorHelper *instance(); @@ -32,6 +34,9 @@ public: */ void controlBackgroundColor(QWidget *widget); +protected: + bool eventFilter(QObject *obj, QEvent *event) override; + private: BackgroundColorHelper(); |
