From a6313a5c98893fa7f3c107d59c4ddcd1a627b272 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Sat, 9 Mar 2024 12:54:15 +0100 Subject: Handle deprecation of QGuiApplication::paletteChanged NO_CHANGELOG --- src/selectionmode/backgroundcolorhelper.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/selectionmode/backgroundcolorhelper.h') 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 +#include #include #include @@ -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(); -- cgit v1.3.1