summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/infowin.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-reader/infowin.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-reader/infowin.cpp5
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,11 +1,12 @@
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
5infowin::infowin( QWidget *parent, const char *name, WFlags f) : 6infowin::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);
@@ -30,13 +31,13 @@ infowin::infowin( QWidget *parent, const char *name, WFlags f) :
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}