summaryrefslogtreecommitdiffabout
path: root/microkde/klineeditdlg.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) (side-by-side diff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /microkde/klineeditdlg.h
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2
initial public commit of qt4 portp1
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
@@ -1,34 +1,36 @@
#ifndef MICROKDE_KLINEEDITDLG_H
#define MICROKDE_KLINEEDITDLG_H
#include "kdialogbase.h"
#include <klineedit.h>
#include <qlayout.h>
#include <qlabel.h>
#include <qdialog.h>
#include <qpushbutton.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
class KLineEditDlg : public QDialog
{
public:
KLineEditDlg( const QString & text, const QString & editText, QWidget *parent ) :
QDialog( parent,"lineedit", true ) {
QLabel* lab = new QLabel( text, this );
mEdit = new KLineEdit( this );
- QVBoxLayout* vl = new QVBoxLayout( this );
+ Q3VBoxLayout* vl = new Q3VBoxLayout( this );
vl->setSpacing(5);
vl->setMargin(7);
vl->addWidget( lab );
vl->addWidget( mEdit );
mEdit->setText( editText );
QPushButton * p = new QPushButton (" OK ", this );
vl->addWidget( p );
connect( p, SIGNAL ( clicked () ), this , SLOT (accept() ) );
}
QString text() { return mEdit->text(); }
private:
KLineEdit* mEdit;
};
#endif