aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/universal
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-04-22 13:47:03 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-04-23 12:37:56 +0000
commit5c91ac2aa6509b8c7508cfddcee2b8c6e20d7429 (patch)
tree2e07b20ca005b76baef27e487a7567b941a1b555 /src/imports/controls/universal
parent8e066180fd5668c3459038edc192290f3002706a (diff)
Universal: notify foreground and background changes on theme change
This fixes the theme switch in testbench. Change-Id: I601b40a3b1a9983cf1bbc8e12f5e8dcb9419521d Task-number: QTBUG-52738 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/universal')
-rw-r--r--src/imports/controls/universal/qquickuniversalstyle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/imports/controls/universal/qquickuniversalstyle.cpp b/src/imports/controls/universal/qquickuniversalstyle.cpp
index 0bc539f3..f4ec1fe7 100644
--- a/src/imports/controls/universal/qquickuniversalstyle.cpp
+++ b/src/imports/controls/universal/qquickuniversalstyle.cpp
@@ -165,6 +165,8 @@ void QQuickUniversalStyle::setTheme(Theme theme)
propagateTheme();
emit themeChanged();
emit paletteChanged();
+ emit foregroundChanged();
+ emit backgroundChanged();
}
void QQuickUniversalStyle::inheritTheme(Theme theme)
@@ -176,6 +178,8 @@ void QQuickUniversalStyle::inheritTheme(Theme theme)
propagateTheme();
emit themeChanged();
emit paletteChanged();
+ emit foregroundChanged();
+ emit backgroundChanged();
}
void QQuickUniversalStyle::propagateTheme()