summaryrefslogtreecommitdiff
path: root/client/pracro.cc
diff options
context:
space:
mode:
authordeva <deva>2010-06-01 12:58:32 +0000
committerdeva <deva>2010-06-01 12:58:32 +0000
commit74a28aa7125be6a603128ad600c98c4882f3b5c2 (patch)
tree1a9e4ab74f29d5ff10f2701e4e112f4525c0dcec /client/pracro.cc
parent9b9c1e2dd3e5807ff7714b378b03b9ba31f42df7 (diff)
From new_protocol branch.
Diffstat (limited to 'client/pracro.cc')
-rw-r--r--client/pracro.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/pracro.cc b/client/pracro.cc
index 37b1399..bb2d952 100644
--- a/client/pracro.cc
+++ b/client/pracro.cc
@@ -34,6 +34,9 @@
#include <QTranslator>
+#include <QFontDatabase>
+#include <QFont>
+
#include "netcom.h"
#include "mainwindow.h"
#include "viewer.h"
@@ -50,6 +53,8 @@ QString config = CONFIG_DEFAULT;
QString host;
quint16 port;
+QFont *fixedfont;
+
static void print_usage()
{
printf("Usage: pracro -m MACRO -c CPR -U USER\n");
@@ -159,6 +164,11 @@ int main(int argc, char *argv[])
app.installTranslator(&translator);
}
+ QFontDatabase fontdb;
+ fontdb.addApplicationFont(":fonts/VeraMono.ttf");
+ QFont f = fontdb.font("Bitstream Vera Sans Mono", "", 8);
+ fixedfont = &f;
+
if(show_editor && show_viewer) {
MainWindow mainwindow(cpr, templ, host, port, user);
mainwindow.show();