mobile-widgets: emit signals for each color

Emit signals for each standard color when theme changes.

The iconStyle property was changed from being a constant, because it can
change, and thus a signal was added.

Signed-off-by: jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2020-01-15 09:55:00 +01:00 committed by Dirk Hohndel
parent 5a7ebe15a5
commit 906cce9e88
2 changed files with 15 additions and 1 deletions

View file

@ -33,7 +33,7 @@ class themeInterface : public QObject {
// Support
Q_PROPERTY(QString currentTheme MEMBER m_currentTheme WRITE set_currentTheme NOTIFY currentThemeChanged)
Q_PROPERTY(QString iconStyle MEMBER m_iconStyle CONSTANT)
Q_PROPERTY(QString iconStyle MEMBER m_iconStyle NOTIFY iconStyleChanged)
// Compatibility existing code
Q_PROPERTY(QColor blueBackgroundColor MEMBER m_blueBackgroundColor CONSTANT)
@ -107,6 +107,7 @@ signals:
void currentScaleChanged(double);
void currentThemeChanged(const QString &);
void iconStyleChanged(const QString &);
private:
themeInterface() {}