summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2023-06-14 14:48:07 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-07-27 16:47:16 +0000
commitd48e328458959a00a052a73512c5567de1db6206 (patch)
tree390af3910a570e3bfcd2b61572be9cca54a22722 /examples
parent1b821a811dbc7399c568a2a174c80561a5f7990d (diff)
Do no load default style sheets in recipe browser
If no settings loaded, start recipe browser example with no style sheets applied. Fixes: QTBUG-114471 Change-Id: Ibdcf0e5171dfa76925e9af95754f0583aedec9bd Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io> (cherry picked from commit c1c084157c90cbc21950fae7b3cbcea068c4e9b4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/webenginewidgets/recipebrowser/mainwindow.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/webenginewidgets/recipebrowser/mainwindow.cpp b/examples/webenginewidgets/recipebrowser/mainwindow.cpp
index 7288fe4ce..79cd3bb6b 100644
--- a/examples/webenginewidgets/recipebrowser/mainwindow.cpp
+++ b/examples/webenginewidgets/recipebrowser/mainwindow.cpp
@@ -122,8 +122,7 @@ void MainWindow::loadDefaultStyleSheets()
settings.beginGroup("styleSheets");
for (auto it = defaultStyleSheets.constBegin(); it != defaultStyleSheets.constEnd(); ++it) {
- settings.setValue(it.key(), QVariant::fromValue(qMakePair(it.value(), true)));
- insertStyleSheet(it.key(), it.value(), false);
+ settings.setValue(it.key(), QVariant::fromValue(qMakePair(it.value(), false)));
}
settings.endGroup();