summaryrefslogtreecommitdiff
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()
151 errorColor.setProperty(QTextFormat::FullWidthSelection, true); 151 errorColor.setProperty(QTextFormat::FullWidthSelection, true);
152 152
153 /* Setting the font */ 153 /* Setting the font */
154 QFont family = settings.value("fontFamily", QFont()).value<QFont>(); 154 QFont def("Monospace");
155 def.setStyleHint(QFont::TypeWriter);
156 QFont family = settings.value("fontFamily", def).value<QFont>();
155 family.setPointSize(settings.value("fontSize", 12).toInt()); 157 family.setPointSize(settings.value("fontSize", 12).toInt());
156 editor->setFont(family); 158 editor->setFont(family);
157 159