summaryrefslogtreecommitdiffabout
path: root/microkde/kdialog.h
Unidiff
Diffstat (limited to 'microkde/kdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kdialog.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/microkde/kdialog.h b/microkde/kdialog.h
index 703d268..bc80689 100644
--- a/microkde/kdialog.h
+++ b/microkde/kdialog.h
@@ -2,6 +2,9 @@
2#define MINIKDE_KDIALOG_H 2#define MINIKDE_KDIALOG_H
3 3
4#include <qdialog.h> 4#include <qdialog.h>
5class QLabel;
6class QProgressBar;
7class QPushButton ;
5 8
6class KDialog : public QDialog 9class KDialog : public QDialog
7{ 10{
@@ -14,5 +17,22 @@ class KDialog : public QDialog
14 static int spacingHintSmall(); 17 static int spacingHintSmall();
15 static int marginHintSmall(); 18 static int marginHintSmall();
16}; 19};
20class KProgressDialog : public QDialog
21{
22 Q_OBJECT
23 public:
24 KProgressDialog( QWidget *parent=0, const char *name=0, bool modal=false );
25 void setLabelText ( const QString & );
26 void setTotalSteps ( int totalSteps );
27 void setProgress ( int progress );
28 void accept();
29 void reject();
30 private:
31 QLabel * mLabel;
32 QProgressBar *mBar;
33 QPushButton *mButton;
34 signals:
35 void cancelled ();
36};
17 37
18#endif 38#endif