Diffstat (limited to 'noncore/apps/opie-reader/infowin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/infowin.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/apps/opie-reader/infowin.cpp b/noncore/apps/opie-reader/infowin.cpp index 7b8f280..30adebf 100644 --- a/noncore/apps/opie-reader/infowin.cpp +++ b/noncore/apps/opie-reader/infowin.cpp | |||
@@ -1,17 +1,18 @@ | |||
1 | #include "name.h" | ||
1 | #include "infowin.h" | 2 | #include "infowin.h" |
2 | #include "version.h" | 3 | #include "version.h" |
3 | #include <stdio.h> | 4 | #include <stdio.h> |
4 | 5 | ||
5 | infowin::infowin( QWidget *parent, const char *name, WFlags f) : | 6 | infowin::infowin( QWidget *parent=0, const char *name=0, WFlags f = 0) : |
6 | QWidget(parent, name, f) | 7 | QWidget(parent, name, f) |
7 | { | 8 | { |
8 | grid = new QGridLayout(this, 6, 2); | 9 | grid = new QGridLayout(this, 6, 2); |
9 | QLabel* l; | 10 | QLabel* l; |
10 | l = new QLabel("Compressed file size", this); | 11 | l = new QLabel("Compressed file size", this); |
11 | grid->addWidget(l, 0, 0); | 12 | grid->addWidget(l, 0, 0); |
12 | fileSize = new QLabel("0", this); | 13 | fileSize = new QLabel("0", this); |
13 | fileSize->setAlignment( AlignVCenter | AlignRight ); | 14 | fileSize->setAlignment( AlignVCenter | AlignRight ); |
14 | grid->addWidget(fileSize, 0, 1); | 15 | grid->addWidget(fileSize, 0, 1); |
15 | l = new QLabel("Original text size", this); | 16 | l = new QLabel("Original text size", this); |
16 | grid->addWidget(l, 1, 0); | 17 | grid->addWidget(l, 1, 0); |
17 | textSize = new QLabel("0", this); | 18 | textSize = new QLabel("0", this); |
@@ -24,19 +25,19 @@ infowin::infowin( QWidget *parent, const char *name, WFlags f) : | |||
24 | ratio->setAlignment( AlignVCenter | AlignRight ); | 25 | ratio->setAlignment( AlignVCenter | AlignRight ); |
25 | l = new QLabel("Current location", this); | 26 | l = new QLabel("Current location", this); |
26 | grid->addWidget(l, 3, 0); | 27 | grid->addWidget(l, 3, 0); |
27 | location = new QLabel("0", this); | 28 | location = new QLabel("0", this); |
28 | location->setAlignment( AlignVCenter | AlignRight ); | 29 | location->setAlignment( AlignVCenter | AlignRight ); |
29 | grid->addWidget(location, 3, 1); | 30 | grid->addWidget(location, 3, 1); |
30 | l = new QLabel("Per centage read", this); | 31 | l = new QLabel("Per centage read", this); |
31 | grid->addWidget(l, 4, 0); | 32 | grid->addWidget(l, 4, 0); |
32 | read = new QLabel("0", this); | 33 | read = new QLabel("0", this); |
33 | read->setAlignment( AlignVCenter | AlignRight ); | 34 | read->setAlignment( AlignVCenter | AlignRight ); |
34 | grid->addWidget(read, 4, 1); | 35 | grid->addWidget(read, 4, 1); |
35 | char vstr[128]; | 36 | char vstr[128]; |
36 | sprintf(vstr, "QT Reader v%u.%u%c (%s)\nA small e-text reader", MAJOR, BKMKTYPE, MINOR, RELEASE_TYPE); | 37 | sprintf(vstr, PROGNAME " v%u.%u%c (%s)\nA small e-text reader", MAJOR, BKMKTYPE, MINOR, RELEASE_TYPE); |
37 | l = new QLabel(vstr, this); | 38 | l = new QLabel(vstr, this); |
38 | grid->addWidget(l, 5, 0); | 39 | grid->addWidget(l, 5, 0); |
39 | QPushButton* exitbutton = new QPushButton("Cancel", this); | 40 | QPushButton* exitbutton = new QPushButton("Cancel", this); |
40 | connect( exitbutton, SIGNAL( released() ), this, SLOT( infoClose() ) ); | 41 | connect( exitbutton, SIGNAL( released() ), this, SLOT( infoClose() ) ); |
41 | grid->addWidget(exitbutton, 5, 1); | 42 | grid->addWidget(exitbutton, 5, 1); |
42 | } | 43 | } |