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/klineeditdlg.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/klineeditdlg.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/microkde/klineeditdlg.h b/microkde/klineeditdlg.h index 68e9252..d0004cd 100644 --- a/microkde/klineeditdlg.h +++ b/microkde/klineeditdlg.h | |||
@@ -4,21 +4,23 @@ | |||
4 | #include "kdialogbase.h" | 4 | #include "kdialogbase.h" |
5 | #include <klineedit.h> | 5 | #include <klineedit.h> |
6 | #include <qlayout.h> | 6 | #include <qlayout.h> |
7 | #include <qlabel.h> | 7 | #include <qlabel.h> |
8 | #include <qdialog.h> | 8 | #include <qdialog.h> |
9 | #include <qpushbutton.h> | 9 | #include <qpushbutton.h> |
10 | //Added by qt3to4: | ||
11 | #include <Q3VBoxLayout> | ||
10 | 12 | ||
11 | class KLineEditDlg : public QDialog | 13 | class KLineEditDlg : public QDialog |
12 | { | 14 | { |
13 | public: | 15 | public: |
14 | KLineEditDlg( const QString & text, const QString & editText, QWidget *parent ) : | 16 | KLineEditDlg( const QString & text, const QString & editText, QWidget *parent ) : |
15 | QDialog( parent,"lineedit", true ) { | 17 | QDialog( parent,"lineedit", true ) { |
16 | QLabel* lab = new QLabel( text, this ); | 18 | QLabel* lab = new QLabel( text, this ); |
17 | mEdit = new KLineEdit( this ); | 19 | mEdit = new KLineEdit( this ); |
18 | QVBoxLayout* vl = new QVBoxLayout( this ); | 20 | Q3VBoxLayout* vl = new Q3VBoxLayout( this ); |
19 | vl->setSpacing(5); | 21 | vl->setSpacing(5); |
20 | vl->setMargin(7); | 22 | vl->setMargin(7); |
21 | vl->addWidget( lab ); | 23 | vl->addWidget( lab ); |
22 | vl->addWidget( mEdit ); | 24 | vl->addWidget( mEdit ); |
23 | mEdit->setText( editText ); | 25 | mEdit->setText( editText ); |
24 | QPushButton * p = new QPushButton (" OK ", this ); | 26 | QPushButton * p = new QPushButton (" OK ", this ); |