Diffstat (limited to 'noncore/apps/opie-reader/infowin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/infowin.cpp | 7 |
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 | |||
@@ -1,7 +1,6 @@ | |||
1 | #include "infowin.h" | 1 | #include "infowin.h" |
2 | #include "version.h" | 2 | #include "version.h" |
3 | 3 | #include <stdio.h> | |
4 | #define VERSION_STRING "QT Reader v" ## MAJOR ## "." ## MINOR ## " (" ## RELEASE_TYPE ## ")\nA small e-text reader" | ||
5 | 4 | ||
6 | infowin::infowin( QWidget *parent=0, const char *name=0, WFlags f = 0) : | 5 | infowin::infowin( QWidget *parent=0, const char *name=0, WFlags f = 0) : |
7 | QWidget(parent, name, f) | 6 | QWidget(parent, name, f) |
@@ -33,7 +32,9 @@ infowin::infowin( QWidget *parent=0, const char *name=0, WFlags f = 0) : | |||
33 | read = new QLabel("0", this); | 32 | read = new QLabel("0", this); |
34 | read->setAlignment( AlignVCenter | AlignRight ); | 33 | read->setAlignment( AlignVCenter | AlignRight ); |
35 | grid->addWidget(read, 4, 1); | 34 | grid->addWidget(read, 4, 1); |
36 | l = new QLabel(VERSION_STRING, this); | 35 | char vstr[128]; |
36 | sprintf(vstr, "QT Reader v%u.%u%c (%s)\nA small e-text reader", MAJOR, BKMKTYPE, MINOR, RELEASE_TYPE); | ||
37 | l = new QLabel(vstr, this); | ||
37 | grid->addWidget(l, 5, 0); | 38 | grid->addWidget(l, 5, 0); |
38 | QPushButton* exitbutton = new QPushButton("Cancel", this); | 39 | QPushButton* exitbutton = new QPushButton("Cancel", this); |
39 | connect( exitbutton, SIGNAL( released() ), this, SLOT( infoClose() ) ); | 40 | connect( exitbutton, SIGNAL( released() ), this, SLOT( infoClose() ) ); |