Use always white as the background color in HelpViewer

Our css styling assumes white as the background color.

Change-Id: Ieeddf1eba5bb29cadf0f4da7c8ee6b14c5d1387e
Task-number: QTCREATORBUG-13300
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
This commit is contained in:
Thomas Hartmann
2014-11-04 11:43:39 +01:00
parent 6fed775226
commit 300f54260c
2 changed files with 5 additions and 0 deletions

View File

@@ -402,6 +402,10 @@ QtWebKitHelpViewer::QtWebKitHelpViewer(qreal zoom, QWidget *parent)
layout->setContentsMargins(0, 0, 0, 0);
layout->addWidget(m_webView, 10);
QPalette p = palette();
p.setColor(QPalette::Base, Qt::white);
setPalette(p);
connect(m_webView, SIGNAL(urlChanged(QUrl)), this, SIGNAL(sourceChanged(QUrl)));
connect(m_webView, SIGNAL(loadStarted()), this, SLOT(slotLoadStarted()));
connect(m_webView, SIGNAL(loadFinished(bool)), this, SLOT(slotLoadFinished()));

View File

@@ -63,6 +63,7 @@ TextBrowserHelpViewer::TextBrowserHelpViewer(qreal zoom, QWidget *parent)
p.color(QPalette::Active, QPalette::Highlight));
p.setColor(QPalette::Inactive, QPalette::HighlightedText,
p.color(QPalette::Active, QPalette::HighlightedText));
p.setColor(QPalette::Base, Qt::white);
setPalette(p);
connect(m_textBrowser, SIGNAL(sourceChanged(QUrl)), this, SIGNAL(titleChanged()));