Diffstat (limited to 'korganizer/koeditorgeneralevent.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koeditorgeneralevent.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/korganizer/koeditorgeneralevent.cpp b/korganizer/koeditorgeneralevent.cpp index 3dd7f5c..2c6ed9f 100644 --- a/korganizer/koeditorgeneralevent.cpp +++ b/korganizer/koeditorgeneralevent.cpp | |||
@@ -18,32 +18,33 @@ | |||
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <qtooltip.h> | 24 | #include <qtooltip.h> |
25 | #include <qlayout.h> | 25 | #include <qlayout.h> |
26 | #include <qvbox.h> | 26 | #include <qvbox.h> |
27 | #include <qbuttongroup.h> | 27 | #include <qbuttongroup.h> |
28 | #include <qvgroupbox.h> | 28 | #include <qvgroupbox.h> |
29 | #include <qwidgetstack.h> | 29 | #include <qwidgetstack.h> |
30 | #include <qdatetime.h> | 30 | #include <qdatetime.h> |
31 | 31 | ||
32 | #include <kdebug.h> | 32 | #include <kdebug.h> |
33 | #include <kglobal.h> | 33 | #include <kglobal.h> |
34 | #include <kdialog.h> | ||
34 | #include <klocale.h> | 35 | #include <klocale.h> |
35 | #include <kiconloader.h> | 36 | #include <kiconloader.h> |
36 | #include <kmessagebox.h> | 37 | #include <kmessagebox.h> |
37 | #include <kfiledialog.h> | 38 | #include <kfiledialog.h> |
38 | #include <kstandarddirs.h> | 39 | #include <kstandarddirs.h> |
39 | 40 | ||
40 | #include <libkcal/event.h> | 41 | #include <libkcal/event.h> |
41 | 42 | ||
42 | #include <libkdepim/kdateedit.h> | 43 | #include <libkdepim/kdateedit.h> |
43 | 44 | ||
44 | #include "koprefs.h" | 45 | #include "koprefs.h" |
45 | 46 | ||
46 | #include "koeditorgeneralevent.h" | 47 | #include "koeditorgeneralevent.h" |
47 | #include "kolocationbox.h" | 48 | #include "kolocationbox.h" |
48 | 49 | ||
49 | KOEditorGeneralEvent::KOEditorGeneralEvent(QObject* parent, | 50 | KOEditorGeneralEvent::KOEditorGeneralEvent(QObject* parent, |
@@ -78,34 +79,34 @@ void KOEditorGeneralEvent::finishSetup() | |||
78 | // QWidget::setTabOrder( mSecrecyCombo, mDescriptionEdit ); | 79 | // QWidget::setTabOrder( mSecrecyCombo, mDescriptionEdit ); |
79 | 80 | ||
80 | 81 | ||
81 | 82 | ||
82 | mSummaryEdit->load(KOLocationBox::SUMMARYEVENT); | 83 | mSummaryEdit->load(KOLocationBox::SUMMARYEVENT); |
83 | mSummaryEdit->setFocus(); | 84 | mSummaryEdit->setFocus(); |
84 | } | 85 | } |
85 | 86 | ||
86 | void KOEditorGeneralEvent::initTime(QWidget *parent,QBoxLayout *topLayout) | 87 | void KOEditorGeneralEvent::initTime(QWidget *parent,QBoxLayout *topLayout) |
87 | { | 88 | { |
88 | QBoxLayout *timeLayout = new QVBoxLayout(topLayout); | 89 | QBoxLayout *timeLayout = new QVBoxLayout(topLayout); |
89 | 90 | ||
90 | QGroupBox *timeGroupBox = new QGroupBox(1,QGroupBox::Horizontal, | 91 | QGroupBox *timeGroupBox = new QGroupBox(1,QGroupBox::Horizontal, |
91 | i18n("Date && Time"),parent); | 92 | i18n("Date && Time"),parent); |
92 | timeLayout->addWidget(timeGroupBox); | 93 | timeLayout->addWidget(timeGroupBox); |
93 | 94 | ||
94 | timeGroupBox->layout()->setSpacing( 0 ); | 95 | timeGroupBox->layout()->setSpacing( KDialog::spacingHintSmall() ); |
95 | timeGroupBox->layout()->setMargin( 5 ); | 96 | timeGroupBox->layout()->setMargin( KDialog::marginHint() ); |
96 | QFrame *timeBoxFrame = new QFrame(timeGroupBox); | 97 | QFrame *timeBoxFrame = new QFrame(timeGroupBox); |
97 | 98 | ||
98 | QGridLayout *layoutTimeBox = new QGridLayout(timeBoxFrame,2,3); | 99 | QGridLayout *layoutTimeBox = new QGridLayout(timeBoxFrame,2,3); |
99 | layoutTimeBox->setSpacing(topLayout->spacing()); | 100 | layoutTimeBox->setSpacing(topLayout->spacing()); |
100 | 101 | ||
101 | mStartDateLabel = new QLabel(i18n("Start:"),timeBoxFrame); | 102 | mStartDateLabel = new QLabel(i18n("Start:"),timeBoxFrame); |
102 | layoutTimeBox->addWidget(mStartDateLabel,0,0); | 103 | layoutTimeBox->addWidget(mStartDateLabel,0,0); |
103 | 104 | ||
104 | mStartDateEdit = new KDateEdit(timeBoxFrame); | 105 | mStartDateEdit = new KDateEdit(timeBoxFrame); |
105 | layoutTimeBox->addWidget(mStartDateEdit,0,1); | 106 | layoutTimeBox->addWidget(mStartDateEdit,0,1); |
106 | 107 | ||
107 | mStartTimeEdit = new KOTimeEdit(timeBoxFrame); | 108 | mStartTimeEdit = new KOTimeEdit(timeBoxFrame); |
108 | layoutTimeBox->addWidget(mStartTimeEdit,0,2); | 109 | layoutTimeBox->addWidget(mStartTimeEdit,0,2); |
109 | 110 | ||
110 | 111 | ||
111 | mEndDateLabel = new QLabel(i18n("End:"),timeBoxFrame); | 112 | mEndDateLabel = new QLabel(i18n("End:"),timeBoxFrame); |