Diffstat (limited to 'korganizer/koeditorgeneralevent.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | korganizer/koeditorgeneralevent.cpp | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/korganizer/koeditorgeneralevent.cpp b/korganizer/koeditorgeneralevent.cpp index 2c6ed9f..73a4139 100644 --- a/korganizer/koeditorgeneralevent.cpp +++ b/korganizer/koeditorgeneralevent.cpp | |||
@@ -24,9 +24,15 @@ | |||
24 | #include <qtooltip.h> | 24 | #include <qtooltip.h> |
25 | #include <qlayout.h> | 25 | #include <qlayout.h> |
26 | #include <qvbox.h> | 26 | #include <q3vbox.h> |
27 | #include <qbuttongroup.h> | 27 | #include <q3buttongroup.h> |
28 | #include <qvgroupbox.h> | 28 | #include <q3vgroupbox.h> |
29 | #include <qwidgetstack.h> | 29 | #include <q3widgetstack.h> |
30 | #include <qdatetime.h> | 30 | #include <qdatetime.h> |
31 | //Added by qt3to4: | ||
32 | #include <Q3HBoxLayout> | ||
33 | #include <Q3GridLayout> | ||
34 | #include <Q3Frame> | ||
35 | #include <QLabel> | ||
36 | #include <Q3VBoxLayout> | ||
31 | 37 | ||
32 | #include <kdebug.h> | 38 | #include <kdebug.h> |
@@ -85,9 +91,9 @@ void KOEditorGeneralEvent::finishSetup() | |||
85 | } | 91 | } |
86 | 92 | ||
87 | void KOEditorGeneralEvent::initTime(QWidget *parent,QBoxLayout *topLayout) | 93 | void KOEditorGeneralEvent::initTime(QWidget *parent,Q3BoxLayout *topLayout) |
88 | { | 94 | { |
89 | QBoxLayout *timeLayout = new QVBoxLayout(topLayout); | 95 | Q3BoxLayout *timeLayout = new Q3VBoxLayout(topLayout); |
90 | 96 | ||
91 | QGroupBox *timeGroupBox = new QGroupBox(1,QGroupBox::Horizontal, | 97 | Q3GroupBox *timeGroupBox = new Q3GroupBox(1,Qt::Horizontal, |
92 | i18n("Date && Time"),parent); | 98 | i18n("Date && Time"),parent); |
93 | timeLayout->addWidget(timeGroupBox); | 99 | timeLayout->addWidget(timeGroupBox); |
@@ -95,7 +101,7 @@ void KOEditorGeneralEvent::initTime(QWidget *parent,QBoxLayout *topLayout) | |||
95 | timeGroupBox->layout()->setSpacing( KDialog::spacingHintSmall() ); | 101 | timeGroupBox->layout()->setSpacing( KDialog::spacingHintSmall() ); |
96 | timeGroupBox->layout()->setMargin( KDialog::marginHint() ); | 102 | timeGroupBox->layout()->setMargin( KDialog::marginHint() ); |
97 | QFrame *timeBoxFrame = new QFrame(timeGroupBox); | 103 | Q3Frame *timeBoxFrame = new Q3Frame(timeGroupBox); |
98 | 104 | ||
99 | QGridLayout *layoutTimeBox = new QGridLayout(timeBoxFrame,2,3); | 105 | Q3GridLayout *layoutTimeBox = new Q3GridLayout(timeBoxFrame,2,3); |
100 | layoutTimeBox->setSpacing(topLayout->spacing()); | 106 | layoutTimeBox->setSpacing(topLayout->spacing()); |
101 | 107 | ||
@@ -119,5 +125,5 @@ void KOEditorGeneralEvent::initTime(QWidget *parent,QBoxLayout *topLayout) | |||
119 | layoutTimeBox->addWidget(mEndTimeEdit,1,2); | 125 | layoutTimeBox->addWidget(mEndTimeEdit,1,2); |
120 | QWidget* duration = new QWidget( timeBoxFrame ); | 126 | QWidget* duration = new QWidget( timeBoxFrame ); |
121 | QHBoxLayout *flagsBox = new QHBoxLayout( duration ); | 127 | Q3HBoxLayout *flagsBox = new Q3HBoxLayout( duration ); |
122 | mNoTimeButton = new QCheckBox(i18n("All day event"),duration); | 128 | mNoTimeButton = new QCheckBox(i18n("All day event"),duration); |
123 | flagsBox->addWidget(mNoTimeButton); | 129 | flagsBox->addWidget(mNoTimeButton); |
@@ -130,5 +136,5 @@ void KOEditorGeneralEvent::initTime(QWidget *parent,QBoxLayout *topLayout) | |||
130 | //} | 136 | //} |
131 | flagsBox->setStretchFactor(mDurationLabel, 10 ); | 137 | flagsBox->setStretchFactor(mDurationLabel, 10 ); |
132 | mDurationLabel->setAlignment( AlignRight | AlignVCenter); | 138 | mDurationLabel->setAlignment( Qt::AlignRight | Qt::AlignVCenter); |
133 | layoutTimeBox->addMultiCellWidget( duration, 2, 2, 0, 3 ); | 139 | layoutTimeBox->addMultiCellWidget( duration, 2, 2, 0, 3 ); |
134 | 140 | ||
@@ -148,7 +154,7 @@ void KOEditorGeneralEvent::initTime(QWidget *parent,QBoxLayout *topLayout) | |||
148 | } | 154 | } |
149 | 155 | ||
150 | void KOEditorGeneralEvent::initClass(QWidget *parent,QBoxLayout *topLayout) | 156 | void KOEditorGeneralEvent::initClass(QWidget *parent,Q3BoxLayout *topLayout) |
151 | { | 157 | { |
152 | QBoxLayout *classLayout = new QHBoxLayout(topLayout); | 158 | Q3BoxLayout *classLayout = new Q3HBoxLayout(topLayout); |
153 | 159 | ||
154 | QLabel *freeTimeLabel = new QLabel(i18n("Show time as:"),parent); | 160 | QLabel *freeTimeLabel = new QLabel(i18n("Show time as:"),parent); |