#define BACKGROUNDCOLORHELPER_H
#include <QColor>
+#include <QObject>
#include <QPointer>
#include <memory>
/**
* @brief A Singleton class for managing the colors of selection mode widgets.
*/
-class BackgroundColorHelper
+class BackgroundColorHelper : public QObject
{
+ Q_OBJECT
public:
static BackgroundColorHelper *instance();
*/
void controlBackgroundColor(QWidget *widget);
+protected:
+ bool eventFilter(QObject *obj, QEvent *event) override;
+
private:
BackgroundColorHelper();
*/
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: