Diffstat (limited to 'core/pim/datebook/dateentryimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook/dateentryimpl.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/pim/datebook/dateentryimpl.cpp b/core/pim/datebook/dateentryimpl.cpp index 1122f79..b2e3e3a 100644 --- a/core/pim/datebook/dateentryimpl.cpp +++ b/core/pim/datebook/dateentryimpl.cpp | |||
@@ -40,8 +40,10 @@ | |||
40 | #include <qtoolbutton.h> | 40 | #include <qtoolbutton.h> |
41 | 41 | ||
42 | #include <stdlib.h> | 42 | #include <stdlib.h> |
43 | 43 | ||
44 | #include <stdiostream.h> | ||
45 | |||
44 | /* | 46 | /* |
45 | * Constructs a DateEntry which is a child of 'parent', with the | 47 | * Constructs a DateEntry which is a child of 'parent', with the |
46 | * name 'name' and widget flags set to 'f' | 48 | * name 'name' and widget flags set to 'f' |
47 | * | 49 | * |
@@ -57,8 +59,9 @@ DateEntry::DateEntry( bool startOnMonday, const QDateTime &start, | |||
57 | startWeekOnMonday( startOnMonday ) | 59 | startWeekOnMonday( startOnMonday ) |
58 | { | 60 | { |
59 | init(); | 61 | init(); |
60 | setDates(start,end); | 62 | setDates(start,end); |
63 | setFocusProxy(comboDescription); | ||
61 | } | 64 | } |
62 | 65 | ||
63 | static void addOrPick( QComboBox* combo, const QString& t ) | 66 | static void addOrPick( QComboBox* combo, const QString& t ) |
64 | { | 67 | { |
@@ -175,8 +178,9 @@ void DateEntry::init() | |||
175 | */ | 178 | */ |
176 | DateEntry::~DateEntry() | 179 | DateEntry::~DateEntry() |
177 | { | 180 | { |
178 | // no need to delete child widgets, Qt does it all for us | 181 | // no need to delete child widgets, Qt does it all for us |
182 | //cout << "Del: " << comboStart->currentText() << endl; | ||
179 | } | 183 | } |
180 | 184 | ||
181 | /* | 185 | /* |
182 | * public slot | 186 | * public slot |
@@ -269,8 +273,9 @@ void DateEntry::startDateChanged( int y, int m, int d ) | |||
269 | void DateEntry::startTimeChanged( int index ) | 273 | void DateEntry::startTimeChanged( int index ) |
270 | { | 274 | { |
271 | startTime = parseTime(comboStart->text(index),ampm); | 275 | startTime = parseTime(comboStart->text(index),ampm); |
272 | changeEndCombo( index ); | 276 | changeEndCombo( index ); |
277 | //cout << "Start: " << comboStart->currentText() << endl; | ||
273 | } | 278 | } |
274 | /* | 279 | /* |
275 | * public slot | 280 | * public slot |
276 | */ | 281 | */ |
@@ -381,8 +386,11 @@ Event DateEntry::event() | |||
381 | ev.setAlarm( checkAlarm->isChecked(), spinAlarm->value(), st ); | 386 | ev.setAlarm( checkAlarm->isChecked(), spinAlarm->value(), st ); |
382 | if ( rp.type != Event::NoRepeat ) | 387 | if ( rp.type != Event::NoRepeat ) |
383 | ev.setRepeat( TRUE, rp ); | 388 | ev.setRepeat( TRUE, rp ); |
384 | ev.setNotes( editNote->text() ); | 389 | ev.setNotes( editNote->text() ); |
390 | |||
391 | //cout << "Start: " << comboStart->currentText() << endl; | ||
392 | |||
385 | return ev; | 393 | return ev; |
386 | } | 394 | } |
387 | 395 | ||
388 | void DateEntry::setRepeatLabel() | 396 | void DateEntry::setRepeatLabel() |