summaryrefslogtreecommitdiff
path: root/src/Preferences.cc
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2012-01-04 04:43:39 (GMT)
committerMarius Kintel <marius@kintel.net>2012-01-04 14:47:00 (GMT)
commit101fa843c9c8fea666e3b9275c3a6a1af5954655 (patch)
tree655f408a956ce102b688194fc082f9d69d38f158 /src/Preferences.cc
parent47c51d128acba10248e4ebd674cc99e147f68088 (diff)
make default font monospace per bug rep by brad pitcher
Diffstat (limited to 'src/Preferences.cc')
-rw-r--r--src/Preferences.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Preferences.cc b/src/Preferences.cc
index 1f52311..c3d1918 100644
--- a/src/Preferences.cc
+++ b/src/Preferences.cc
@@ -1,3 +1,5 @@
+#include <iostream>
+using namespace std;
/*
* OpenSCAD (www.openscad.org)
* Copyright (C) 2009-2011 Clifford Wolf <clifford@clifford.at> and
@@ -47,8 +49,8 @@ Preferences::Preferences(QWidget *parent) : QMainWindow(parent)
// Setup default settings
this->defaultmap["3dview/colorscheme"] = this->colorSchemeChooser->currentItem()->text();
- this->defaultmap["editor/fontfamily"] = this->fontChooser->currentText();
- this->defaultmap["editor/fontsize"] = this->fontSize->currentText().toUInt();
+ this->defaultmap["editor/fontfamily"] = "Mono";
+ this->defaultmap["editor/fontsize"] = 12;
this->defaultmap["advanced/opencsg_show_warning"] = true;
this->defaultmap["advanced/enable_opencsg_opengl1x"] = true;
@@ -212,7 +214,7 @@ void Preferences::updateGUI()
if (!found.isEmpty()) this->colorSchemeChooser->setCurrentItem(found.first());
QString fontfamily = getValue("editor/fontfamily").toString();
- int fidx = this->fontChooser->findText(fontfamily);
+ int fidx = this->fontChooser->findText(fontfamily,Qt::MatchContains);
if (fidx >= 0) {
this->fontChooser->setCurrentIndex(fidx);
}
contact: Jan Huwald // Impressum