summaryrefslogtreecommitdiffstatshomepage
path: root/NoteEditor.cpp
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-03-18 17:46:14 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-03-18 17:46:14 -0400
commitec016fc167fa3306e37090a337f7b40439c35b48 (patch)
treec28039f1a566d58bc57c8837bb89d786647b2cc5 /NoteEditor.cpp
parentRevert "Attempt css instead of setfont." (diff)
downloadAuthor-ec016fc167fa3306e37090a337f7b40439c35b48.tar.xz
Author-ec016fc167fa3306e37090a337f7b40439c35b48.zip
Revert 7c00afe0392728279e18baee30be63440c871c25 partially.
Diffstat (limited to 'NoteEditor.cpp')
-rw-r--r--NoteEditor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/NoteEditor.cpp b/NoteEditor.cpp
index 8293d61..bddfd5c 100644
--- a/NoteEditor.cpp
+++ b/NoteEditor.cpp
@@ -17,7 +17,8 @@ NoteEditor::NoteEditor(const QString &title, QWidget *parent) :
setUnifiedTitleAndToolBarOnMac(true);
m_editor = new QTextEdit;
- m_editor->setText("<h2>" + title + "</h2><p>" + tr("notes...") + "</p>");
+ m_editor->setFontFamily("CMU Typewriter Text Variable Width");
+ m_editor->setText("<h2><font face=\"CMU Typewriter Text Variable Width\">" + title + "</font></h2><p><font face=\"CMU Typewriter Text Variable Width\">" + tr("notes...") + "</font></p>");
setCentralWidget(m_editor);
QDockWidget *sideInstructions = new QDockWidget(tr("Instructions"));