Use always black as the foreground color in HelpViewer

Our css styling assumes black as the background color.
Task-number: QTCREATORBUG-13660
Change-Id: Ia8d76c39c970b436a0ae038191d8d0f8f8728ded
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Thomas Hartmann
2015-01-13 11:04:56 +01:00
committed by Thomas Hartmann
parent 3c85058694
commit a6d4d50172
2 changed files with 2 additions and 0 deletions

View File

@@ -404,6 +404,7 @@ QtWebKitHelpViewer::QtWebKitHelpViewer(qreal zoom, QWidget *parent)
QPalette p = palette(); QPalette p = palette();
p.setColor(QPalette::Base, Qt::white); p.setColor(QPalette::Base, Qt::white);
p.setColor(QPalette::Text, Qt::black);
setPalette(p); setPalette(p);
connect(m_webView, SIGNAL(urlChanged(QUrl)), this, SIGNAL(sourceChanged(QUrl))); connect(m_webView, SIGNAL(urlChanged(QUrl)), this, SIGNAL(sourceChanged(QUrl)));

View File

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