author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /microkde/kdialog.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | microkde/kdialog.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/microkde/kdialog.h b/microkde/kdialog.h index bc80689..5f9bf0e 100644 --- a/microkde/kdialog.h +++ b/microkde/kdialog.h | |||
@@ -1,38 +1,40 @@ | |||
1 | #ifndef MINIKDE_KDIALOG_H | 1 | #ifndef MINIKDE_KDIALOG_H |
2 | #define MINIKDE_KDIALOG_H | 2 | #define MINIKDE_KDIALOG_H |
3 | 3 | ||
4 | #include <qdialog.h> | 4 | #include <qdialog.h> |
5 | //Added by qt3to4: | ||
6 | #include <QLabel> | ||
5 | class QLabel; | 7 | class QLabel; |
6 | class QProgressBar; | 8 | class Q3ProgressBar; |
7 | class QPushButton ; | 9 | class QPushButton ; |
8 | 10 | ||
9 | class KDialog : public QDialog | 11 | class KDialog : public QDialog |
10 | { | 12 | { |
11 | Q_OBJECT | 13 | Q_OBJECT |
12 | public: | 14 | public: |
13 | KDialog( QWidget *parent=0, const char *name=0, bool modal=true ); | 15 | KDialog( QWidget *parent=0, const char *name=0, bool modal=true ); |
14 | 16 | ||
15 | static int spacingHint(); | 17 | static int spacingHint(); |
16 | static int marginHint(); | 18 | static int marginHint(); |
17 | static int spacingHintSmall(); | 19 | static int spacingHintSmall(); |
18 | static int marginHintSmall(); | 20 | static int marginHintSmall(); |
19 | }; | 21 | }; |
20 | class KProgressDialog : public QDialog | 22 | class KProgressDialog : public QDialog |
21 | { | 23 | { |
22 | Q_OBJECT | 24 | Q_OBJECT |
23 | public: | 25 | public: |
24 | KProgressDialog( QWidget *parent=0, const char *name=0, bool modal=false ); | 26 | KProgressDialog( QWidget *parent=0, const char *name=0, bool modal=false ); |
25 | void setLabelText ( const QString & ); | 27 | void setLabelText ( const QString & ); |
26 | void setTotalSteps ( int totalSteps ); | 28 | void setTotalSteps ( int totalSteps ); |
27 | void setProgress ( int progress ); | 29 | void setProgress ( int progress ); |
28 | void accept(); | 30 | void accept(); |
29 | void reject(); | 31 | void reject(); |
30 | private: | 32 | private: |
31 | QLabel * mLabel; | 33 | QLabel * mLabel; |
32 | QProgressBar *mBar; | 34 | Q3ProgressBar *mBar; |
33 | QPushButton *mButton; | 35 | QPushButton *mButton; |
34 | signals: | 36 | signals: |
35 | void cancelled (); | 37 | void cancelled (); |
36 | }; | 38 | }; |
37 | 39 | ||
38 | #endif | 40 | #endif |