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 /korganizer/statusdialog.cpp | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | korganizer/statusdialog.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/korganizer/statusdialog.cpp b/korganizer/statusdialog.cpp index 7137c49..8186ebb 100644 --- a/korganizer/statusdialog.cpp +++ b/korganizer/statusdialog.cpp | |||
@@ -18,37 +18,40 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include <qlabel.h> | 20 | #include <qlabel.h> |
21 | #include <qpushbutton.h> | 21 | #include <qpushbutton.h> |
22 | #include <qstringlist.h> | 22 | #include <qstringlist.h> |
23 | #include <qlayout.h> | 23 | #include <qlayout.h> |
24 | //Added by qt3to4: | ||
25 | #include <Q3VBoxLayout> | ||
26 | #include <Q3HBoxLayout> | ||
24 | 27 | ||
25 | #include <kdebug.h> | 28 | #include <kdebug.h> |
26 | #include <klocale.h> | 29 | #include <klocale.h> |
27 | 30 | ||
28 | #include "statusdialog.h" | 31 | #include "statusdialog.h" |
29 | 32 | ||
30 | StatusDialog::StatusDialog(QWidget* parent, const char* name) : | 33 | StatusDialog::StatusDialog(QWidget* parent, const char* name) : |
31 | KDialog(parent,name,true) | 34 | KDialog(parent,name,true) |
32 | { | 35 | { |
33 | setCaption(i18n("Set Your Status")); | 36 | setCaption(i18n("Set Your Status")); |
34 | 37 | ||
35 | QBoxLayout *topLayout = new QVBoxLayout( this ); | 38 | Q3BoxLayout *topLayout = new Q3VBoxLayout( this ); |
36 | topLayout->setSpacing( spacingHint() ); | 39 | topLayout->setSpacing( spacingHint() ); |
37 | topLayout->setMargin( marginHint() ); | 40 | topLayout->setMargin( marginHint() ); |
38 | 41 | ||
39 | QBoxLayout *statusLayout = new QHBoxLayout( topLayout ); | 42 | Q3BoxLayout *statusLayout = new Q3HBoxLayout( topLayout ); |
40 | 43 | ||
41 | QLabel *text = new QLabel(i18n("Set your status"),this); | 44 | QLabel *text = new QLabel(i18n("Set your status"),this); |
42 | statusLayout->addWidget( text ); | 45 | statusLayout->addWidget( text ); |
43 | 46 | ||
44 | mStatus = new QComboBox(false,this); | 47 | mStatus = new QComboBox(false,this); |
45 | mStatus->insertStringList(Attendee::statusList()); | 48 | mStatus->insertStringList(Attendee::statusList()); |
46 | statusLayout->addWidget( mStatus ); | 49 | statusLayout->addWidget( mStatus ); |
47 | 50 | ||
48 | QBoxLayout *buttonLayout = new QHBoxLayout( topLayout ); | 51 | Q3BoxLayout *buttonLayout = new Q3HBoxLayout( topLayout ); |
49 | 52 | ||
50 | QPushButton *ok = new QPushButton(i18n("&OK"), this); | 53 | QPushButton *ok = new QPushButton(i18n("&OK"), this); |
51 | connect ( ok,SIGNAL(clicked()), this,SLOT(accept()) ); | 54 | connect ( ok,SIGNAL(clicked()), this,SLOT(accept()) ); |
52 | buttonLayout->addWidget( ok ); | 55 | buttonLayout->addWidget( ok ); |
53 | 56 | ||
54 | QPushButton *cancel = new QPushButton(i18n("&Cancel"), this); | 57 | QPushButton *cancel = new QPushButton(i18n("&Cancel"), this); |