]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/selectionmode/backgroundcolorhelper.h
SVN_SILENT made messages (.desktop file) - always resolve ours
[dolphin.git] / src / selectionmode / backgroundcolorhelper.h
index 3450c8e19d4ae4f26776187197d84466d24b0db3..f274593b8b75d3a007730370056e43c01c5288da 100644 (file)
@@ -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();
 
@@ -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: