X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/cd2e64154fd5446a7e19aff4cb147efe2f2ba31e..9f233850beb60168e8773623e0b5ae052c5287e9:/src/selectionmode/backgroundcolorhelper.h diff --git a/src/selectionmode/backgroundcolorhelper.h b/src/selectionmode/backgroundcolorhelper.h index 3450c8e19..f274593b8 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(); @@ -42,7 +47,7 @@ private: */ void slotPaletteChanged(); - /** Calculates a new m_colorControlledWidgets based on the current colour scheme of the application. */ + /** Calculates a new m_colorControlledWidgets based on the current color scheme of the application. */ void updateBackgroundColor(); private: