X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/78cffd2979a6ed87e044fcb024cf4fdfc5c7cb3d..5d9051bba36c8690a622591b1164158f526a9f12:/src/selectionmode/backgroundcolorhelper.h diff --git a/src/selectionmode/backgroundcolorhelper.h b/src/selectionmode/backgroundcolorhelper.h index 251c5eddf..f274593b8 100644 --- a/src/selectionmode/backgroundcolorhelper.h +++ b/src/selectionmode/backgroundcolorhelper.h @@ -1,6 +1,6 @@ /* This file is part of the KDE project - SPDX-FileCopyrightText: 2022 Felix Ernst + SPDX-FileCopyrightText: 2022 Felix Ernst SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ @@ -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: