summaryrefslogtreecommitdiff
path: root/mainwin.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-10-25 20:35:03 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-10-25 20:35:03 (GMT)
commitdc1450e47ff30b2b137c0fb65c5e9798f098a419 (patch)
tree581f242f50a5a524a61c0e64ff5b1764b8466070 /mainwin.cc
parenta201b851e68e75477e0db644d71a0d1fd7608cdd (diff)
Marius Kintel:
Some patches for MacOS X Set text editor font to QFont::TypeWriter git-svn-id: http://svn.clifford.at/openscad/trunk@120 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'mainwin.cc')
-rw-r--r--mainwin.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/mainwin.cc b/mainwin.cc
index 7f78bcb..1e4876a 100644
--- a/mainwin.cc
+++ b/mainwin.cc
@@ -78,6 +78,10 @@ MainWindow::MainWindow(const char *filename)
s1 = new QSplitter(Qt::Horizontal, this);
editor = new QTextEdit(s1);
+ QFont font;
+ font.setStyleHint(QFont::TypeWriter);
+ editor->setFont(font);
+
QWidget *w1 = new QWidget(s1);
QVBoxLayout *l1 = new QVBoxLayout(w1);
l1->setSpacing(0);
contact: Jan Huwald // Impressum