summaryrefslogtreecommitdiffabout
path: root/microkde/klineeditdlg.h
Unidiff
Diffstat (limited to 'microkde/klineeditdlg.h') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/klineeditdlg.h4
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
11class KLineEditDlg : public QDialog 13class 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 );