diff options
author | deva <deva> | 2010-05-28 09:58:14 +0000 |
---|---|---|
committer | deva <deva> | 2010-05-28 09:58:14 +0000 |
commit | 0ce24ae367bb8c274663f097c65ea1abc325b08b (patch) | |
tree | b3d8a2cf38b96a2c60d96ad40ec38a8dd3388447 /client/resumewidget.cc | |
parent | 2846c88debd537159898339d2a55dcdccdbab45b (diff) |
Use incorporated fixed font to render resume texts.
Diffstat (limited to 'client/resumewidget.cc')
-rw-r--r-- | client/resumewidget.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/client/resumewidget.cc b/client/resumewidget.cc index 6877c54..ac18578 100644 --- a/client/resumewidget.cc +++ b/client/resumewidget.cc @@ -32,10 +32,14 @@ #include <QTextEdit> #include <QDialog> +#include <QFont> + #define MAX_COMPACT_SIZE 100 //#define RICH // Experimental syntax highlighter (numbers turn blue) -//#define FIXED_FONT // Show the resume, using a fixed font. +#define FIXED_FONT // Show the resume, using a fixed font. + +extern QFont *fixedfont; // Defined in pracro.cc ResumeWidget::ResumeWidget(bool compact) { @@ -86,9 +90,7 @@ void ResumeWidget::setText(QString text) fulltext = text; #ifdef FIXED_FONT - QFont font = resume->font(); - font.setFamily("Courier New"); - resume->setFont(font); + resume->setFont(*fixedfont); #endif #ifdef RICH |