diff options
author | Michal Malý <madcatxster@devoid-pointer.net> | 2019-10-08 15:56:50 +0200 |
---|---|---|
committer | Michal Malý <madcatxster@devoid-pointer.net> | 2019-10-08 17:34:43 +0200 |
commit | 5e185ed50df75ff647490cae43094fa54886c13f (patch) | |
tree | fd904bead5e02bd4ffbfe809d8c7d2f86141d346 /qtmips_gui | |
parent | 18a89d8f76bc08777e24909399925b4a1843919b (diff) | |
download | qtmips-5e185ed50df75ff647490cae43094fa54886c13f.tar.gz qtmips-5e185ed50df75ff647490cae43094fa54886c13f.tar.bz2 qtmips-5e185ed50df75ff647490cae43094fa54886c13f.zip |
Force white background in SrcEditor
Diffstat (limited to 'qtmips_gui')
-rw-r--r-- | qtmips_gui/srceditor.cpp | 7 |
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) { |