summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/skindocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/skindocument.cpp')
-rw-r--r--utils/themeeditor/skindocument.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/themeeditor/skindocument.cpp b/utils/themeeditor/skindocument.cpp
index aa8fc500d3..3da248a30b 100644
--- a/utils/themeeditor/skindocument.cpp
+++ b/utils/themeeditor/skindocument.cpp
@@ -151,7 +151,9 @@ void SkinDocument::settingsChanged()
errorColor.setProperty(QTextFormat::FullWidthSelection, true);
/* Setting the font */
- QFont family = settings.value("fontFamily", QFont()).value<QFont>();
+ QFont def("Monospace");
+ def.setStyleHint(QFont::TypeWriter);
+ QFont family = settings.value("fontFamily", def).value<QFont>();
family.setPointSize(settings.value("fontSize", 12).toInt());
editor->setFont(family);