summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qchart/tst_qchart.cpp1
-rw-r--r--tests/chartviewer/window.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qchart/tst_qchart.cpp b/tests/auto/qchart/tst_qchart.cpp
index 4749bd4e..6035fd76 100644
--- a/tests/auto/qchart/tst_qchart.cpp
+++ b/tests/auto/qchart/tst_qchart.cpp
@@ -719,6 +719,7 @@ void tst_QChart::theme_data()
QTest::newRow("ChartThemeDark") << QChart::ChartThemeDark;
QTest::newRow("hartThemeHighContrast") << QChart::ChartThemeHighContrast;
QTest::newRow("ChartThemeLight") << QChart::ChartThemeLight;
+ QTest::newRow("ChartThemeQt") << QChart::ChartThemeQt;
}
void tst_QChart::theme()
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));