summaryrefslogtreecommitdiffabout
path: root/microkde/kdialog.h
authorMichael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
commita08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /microkde/kdialog.h
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-p1.zip
kdepimpi-p1.tar.gz
kdepimpi-p1.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'microkde/kdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kdialog.h6
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>
5class QLabel; 7class QLabel;
6class QProgressBar; 8class Q3ProgressBar;
7class QPushButton ; 9class QPushButton ;
8 10
9class KDialog : public QDialog 11class 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};
20class KProgressDialog : public QDialog 22class 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