diff options
| author | Méven Car <[email protected]> | 2024-03-09 12:54:15 +0100 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2024-03-09 13:01:57 +0100 |
| commit | a6313a5c98893fa7f3c107d59c4ddcd1a627b272 (patch) | |
| tree | b157eeafef51626c7053ec96be8b2333a473aea3 /src/selectionmode/backgroundcolorhelper.h | |
| parent | 06d81881b04ac7bfdc124bc00de18d2968870b54 (diff) | |
Handle deprecation of QGuiApplication::paletteChanged
NO_CHANGELOG
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(); |
