Diffstat (limited to 'noncore/apps/opie-reader/infowin.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/infowin.h | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/noncore/apps/opie-reader/infowin.h b/noncore/apps/opie-reader/infowin.h index 9ddce36..6f0fb99 100644 --- a/noncore/apps/opie-reader/infowin.h +++ b/noncore/apps/opie-reader/infowin.h | |||
@@ -3,6 +3,5 @@ | |||
3 | 3 | ||
4 | #include <qlayout.h> | ||
5 | #include <qpushbutton.h> | ||
6 | #include <qgrid.h> | ||
7 | #include <qlabel.h> | 4 | #include <qlabel.h> |
5 | class QString; | ||
6 | class QMultiLineEdit; | ||
8 | 7 | ||
@@ -16,11 +15,9 @@ Q_OBJECT | |||
16 | QLabel* read; | 15 | QLabel* read; |
17 | QGridLayout* grid; | 16 | QLabel* docread; |
17 | QLabel* docSize; | ||
18 | QLabel* docLocation; | ||
19 | QLabel* zoom; | ||
20 | QMultiLineEdit* aboutbox; | ||
18 | public: | 21 | public: |
19 | infowin::infowin( QWidget *parent=0, const char *name=0, WFlags f = 0); | 22 | infowin::infowin( QWidget *parent=0, const char *name=0, WFlags f = 0); |
20 | /* | ||
21 | void addcancel(QPushButton* exitbutton) | ||
22 | { | ||
23 | grid->addWidget(exitbutton, 5, 1); | ||
24 | } | ||
25 | */ | ||
26 | void setFileSize(int sz) { fileSize->setNum(sz); } | 23 | void setFileSize(int sz) { fileSize->setNum(sz); } |
@@ -30,17 +27,7 @@ public: | |||
30 | void setRead(int sz) { read->setText(QString().setNum(sz)+"%"); } | 27 | void setRead(int sz) { read->setText(QString().setNum(sz)+"%"); } |
31 | /* | 28 | void setDocRead(int sz) { docread->setText(QString().setNum(sz)+"%"); } |
32 | virtual void keyPressEvent(QKeyEvent* e) | 29 | void setZoom(int sz) { zoom->setText(QString().setNum(sz)+"%"); } |
33 | { | 30 | void setDocSize(int sz) { docSize->setNum(sz); } |
34 | printf("Received:%d\n", e->key()); | 31 | void setDocLocation(int sz) { docLocation->setNum(sz); } |
35 | switch (e->key()) | 32 | void setAbout(const QString& s); |
36 | { | ||
37 | case Key_Escape: | ||
38 | e->accept(); | ||
39 | emit Close(); | ||
40 | break; | ||
41 | default: | ||
42 | e->ignore(); | ||
43 | } | ||
44 | } | ||
45 | */ | ||
46 | private slots: | 33 | private slots: |