summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/infowin.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-reader/infowin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/infowin.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/apps/opie-reader/infowin.cpp b/noncore/apps/opie-reader/infowin.cpp
index f9a6f5f..9637a62 100644
--- a/noncore/apps/opie-reader/infowin.cpp
+++ b/noncore/apps/opie-reader/infowin.cpp
@@ -2,4 +2,3 @@
#include "version.h"
-
-#define VERSION_STRING "QT Reader v" ## MAJOR ## "." ## MINOR ## " (" ## RELEASE_TYPE ## ")\nA small e-text reader"
+#include <stdio.h>
@@ -35,3 +34,5 @@ infowin::infowin( QWidget *parent=0, const char *name=0, WFlags f = 0) :
grid->addWidget(read, 4, 1);
- l = new QLabel(VERSION_STRING, this);
+ char vstr[128];
+ sprintf(vstr, "QT Reader v%u.%u%c (%s)\nA small e-text reader", MAJOR, BKMKTYPE, MINOR, RELEASE_TYPE);
+ l = new QLabel(vstr, this);
grid->addWidget(l, 5, 0);