aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Wingerd <qt@adaptivetime.com>2018-12-13 15:28:39 -0500
committerGravis <qt@adaptivetime.com>2018-12-14 10:46:35 +0000
commit2710a9b0e57d7055cd1fcb81dd20ad51e1557fce (patch)
treec387d5d12a7335478b2afe400d337961c6f6b488
parentb8a4050bab8c51e1b4a16a0de9134ddedc69bb06 (diff)
help plugin: specify bgcolor for html
Change-Id: I5ffd9851d6bc43510f4eb3ad903055544d83b8b0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r--src/plugins/help/helpplugin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp
index b8710006dc..679f04d9a6 100644
--- a/src/plugins/help/helpplugin.cpp
+++ b/src/plugins/help/helpplugin.cpp
@@ -686,14 +686,14 @@ void HelpPluginPrivate::showContextHelp(const QString &contextHelpId)
// No link found or no context object
showInHelpViewer(QUrl(Help::Constants::AboutBlank), viewer);
viewer->setHtml(QString("<html><head><title>%1</title>"
- "</head><body><br/><center>"
- "<font color=\"%2\"><b>%3</b></font><br/>"
- "<font color=\"%4\">%5</font>"
+ "</head><body bgcolor=\"%2\"><br/><center>"
+ "<font color=\"%3\"><b>%4</b></font><br/>"
+ "<font color=\"%3\">%5</font>"
"</center></body></html>")
.arg(HelpPlugin::tr("No Documentation"))
+ .arg(creatorTheme()->color(Theme::BackgroundColorNormal).name())
.arg(creatorTheme()->color(Theme::TextColorNormal).name())
.arg(contextHelpId)
- .arg(creatorTheme()->color(Theme::TextColorNormal).name())
.arg(HelpPlugin::tr("No documentation available.")));
} else {
showInHelpViewer(source, viewer); // triggers loadFinished which triggers id highlighting