summaryrefslogtreecommitdiffstats
path: root/tests/chartviewer/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/chartviewer/window.cpp')
-rw-r--r--tests/chartviewer/window.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/chartviewer/window.cpp b/tests/chartviewer/window.cpp
index 4e3db744..628fcca1 100644
--- a/tests/chartviewer/window.cpp
+++ b/tests/chartviewer/window.cpp
@@ -163,6 +163,7 @@ QComboBox *Window::createThemeBox()
themeComboBox->addItem("Blue NCS", QChart::ChartThemeBlueNcs);
themeComboBox->addItem("High Contrast", QChart::ChartThemeHighContrast);
themeComboBox->addItem("Blue Icy", QChart::ChartThemeBlueIcy);
+ themeComboBox->addItem("Qt", QChart::ChartThemeQt);
return themeComboBox;
}
@@ -410,6 +411,9 @@ void Window::checkTheme()
} else if (theme == QChart::ChartThemeBlueIcy) {
pal.setColor(QPalette::Window, QRgb(0xcee7f0));
pal.setColor(QPalette::WindowText, QRgb(0x404044));
+ } else if (theme == QChart::ChartThemeQt) {
+ pal.setColor(QPalette::Window, QRgb(0xf0f0f0));
+ pal.setColor(QPalette::WindowText, QRgb(0x404044));
} else {
pal.setColor(QPalette::Window, QRgb(0xf0f0f0));
pal.setColor(QPalette::WindowText, QRgb(0x404044));