summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-11 09:10:54 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-11 09:21:56 (GMT)
commite4344f9e2150e807bd8fb2c4405172869719b0db (patch)
tree9f1918e8a571a515cef0a8c7bdc366104cfdb37e
parentc1be5360025d9620d731e920300a75459a1eb503 (diff)
downloadQt-e4344f9e2150e807bd8fb2c4405172869719b0db.zip
Qt-e4344f9e2150e807bd8fb2c4405172869719b0db.tar.gz
Qt-e4344f9e2150e807bd8fb2c4405172869719b0db.tar.bz2
now really fix the message editor for dark backgrounds
of course, the palette was also set to explicitly white ... also remove the now obsolete transbox image. Task-number: QTBUG-7778
-rw-r--r--tools/linguist/linguist/images/transbox.pngbin782 -> 0 bytes
-rw-r--r--tools/linguist/linguist/linguist.qrc3
-rw-r--r--tools/linguist/linguist/messageeditor.cpp8
3 files changed, 2 insertions, 9 deletions
diff --git a/tools/linguist/linguist/images/transbox.png b/tools/linguist/linguist/images/transbox.png
deleted file mode 100644
index 2d7219b..0000000
--- a/tools/linguist/linguist/images/transbox.png
+++ /dev/null
Binary files differ
diff --git a/tools/linguist/linguist/linguist.qrc b/tools/linguist/linguist/linguist.qrc
index a43f0ce..b70b9cd 100644
--- a/tools/linguist/linguist/linguist.qrc
+++ b/tools/linguist/linguist/linguist.qrc
@@ -1,5 +1,5 @@
<RCC>
- <qresource prefix="/" >
+ <qresource prefix="/">
<file>images/appicon.png</file>
<file>images/mac/accelerator.png</file>
<file>images/mac/book.png</file>
@@ -28,7 +28,6 @@
<file>images/s_check_on.png</file>
<file>images/s_check_warning.png</file>
<file>images/splash.png</file>
- <file>images/transbox.png</file>
<file>images/up.png</file>
<file>images/down.png</file>
<file>images/editdelete.png</file>
diff --git a/tools/linguist/linguist/messageeditor.cpp b/tools/linguist/linguist/messageeditor.cpp
index b6c1688..3848723 100644
--- a/tools/linguist/linguist/messageeditor.cpp
+++ b/tools/linguist/linguist/messageeditor.cpp
@@ -98,14 +98,8 @@ MessageEditor::MessageEditor(MultiDataModel *dataModel, QMainWindow *parent)
{
setObjectName(QLatin1String("scroll area"));
- // Use white explicitly as the background color for the editor page.
QPalette p;
- p.setColor(QPalette::Active, QPalette::Base, Qt::white);
- p.setColor(QPalette::Inactive, QPalette::Base, Qt::white);
- p.setColor(QPalette::Disabled, QPalette::Base, Qt::white);
- p.setColor(QPalette::Active, QPalette::Window, Qt::white);
- p.setColor(QPalette::Inactive, QPalette::Window, Qt::white);
- p.setColor(QPalette::Disabled, QPalette::Window, Qt::white);
+ p.setBrush(QPalette::Window, p.brush(QPalette::Active, QPalette::Base));
setPalette(p);
setupEditorPage();