summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/listobjselectwnd.cpp
Side-by-side diff
Diffstat (limited to 'pwmanager/pwmanager/listobjselectwnd.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/listobjselectwnd.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/pwmanager/pwmanager/listobjselectwnd.cpp b/pwmanager/pwmanager/listobjselectwnd.cpp
index 59729f1..7da7e95 100644
--- a/pwmanager/pwmanager/listobjselectwnd.cpp
+++ b/pwmanager/pwmanager/listobjselectwnd.cpp
@@ -20,22 +20,25 @@
#include "listobjselectwnd.h"
#include <klocale.h>
+//Added by qt3to4:
+#include <QResizeEvent>
+#include <QLabel>
ListObjSelectWnd::ListObjSelectWnd(const QString &caption, const QString &titleText,
QWidget *parent, bool multiSel, const char *name,
- bool modal, WFlags f)
+ bool modal, Qt::WFlags f)
: QDialog(parent, name, modal, f)
{
- vbox1 = new QVBox(this);
+ vbox1 = new Q3VBox(this);
title = new QLabel(vbox1);
- list = new QListBox(vbox1);
+ list = new Q3ListBox(vbox1);
if (multiSel) {
- hbox2 = new QHBox(vbox1);
+ hbox2 = new Q3HBox(vbox1);
selAllButton = new QPushButton(i18n("&Select all"), hbox2);
unselAllButton = new QPushButton(i18n("&Unselect all"), hbox2);
}
- hbox1 = new QHBox(vbox1);
+ hbox1 = new Q3HBox(vbox1);
okButton = new QPushButton(i18n("&Ok"), hbox1);
cancelButton = new QPushButton(i18n("&Cancel"), hbox1);
@@ -45,7 +48,7 @@ ListObjSelectWnd::ListObjSelectWnd(const QString &caption, const QString &titleT
resize(250, 300);
setCaption(caption);
if (multiSel) {
- list->setSelectionMode(QListBox::Multi);
+ list->setSelectionMode(Q3ListBox::Multi);
}
title->setAlignment(Qt::AlignHCenter | Qt::WordBreak);
@@ -126,6 +129,6 @@ void ListObjSelectWnd::setList(const QStringList &_list)
list->insertStringList(_list);
}
-#ifndef PWM_EMBEDDED
-#include "listobjselectwnd.moc"
+#ifndef PWM_EMBEDDED_
+#include "moc_listobjselectwnd.cpp"
#endif