aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Malý <madcatxster@devoid-pointer.net>2019-10-08 15:56:50 +0200
committerMichal Malý <madcatxster@devoid-pointer.net>2019-10-08 17:34:43 +0200
commit5e185ed50df75ff647490cae43094fa54886c13f (patch)
treefd904bead5e02bd4ffbfe809d8c7d2f86141d346
parent18a89d8f76bc08777e24909399925b4a1843919b (diff)
downloadqtmips-5e185ed50df75ff647490cae43094fa54886c13f.tar.gz
qtmips-5e185ed50df75ff647490cae43094fa54886c13f.tar.bz2
qtmips-5e185ed50df75ff647490cae43094fa54886c13f.zip
Force white background in SrcEditor
-rw-r--r--qtmips_gui/srceditor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/qtmips_gui/srceditor.cpp b/qtmips_gui/srceditor.cpp
index 2d4a5ec..aaed0f2 100644
--- a/qtmips_gui/srceditor.cpp
+++ b/qtmips_gui/srceditor.cpp
@@ -35,6 +35,7 @@
#include <QFile>
#include <QFileInfo>
+#include <QPalette>
#include <QTextDocumentWriter>
#include <QTextCursor>
#include <QTextBlock>
@@ -52,6 +53,12 @@ void SrcEditor::setup_common() {
setFont(font);
tname = "Unknown";
highlighter = new HighlighterAsm(document());
+
+ QPalette p = palette();
+ p.setColor(QPalette::Active, QPalette::Base, Qt::white);
+ p.setColor(QPalette::Inactive, QPalette::Base, Qt::white);
+ p.setColor(QPalette::Disabled, QPalette::Base, Qt::white);
+ setPalette(p);
}
SrcEditor::SrcEditor(QWidget *parent) : Super(parent) {