Diffstat (limited to 'core/pim/datebook/dateentryimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/dateentryimpl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/pim/datebook/dateentryimpl.cpp b/core/pim/datebook/dateentryimpl.cpp index 1c43363..e563db0 100644 --- a/core/pim/datebook/dateentryimpl.cpp +++ b/core/pim/datebook/dateentryimpl.cpp | |||
@@ -104,26 +104,28 @@ DateEntry::DateEntry( bool startOnMonday, const Event &event, bool whichClock, | |||
104 | rp = event.repeatPattern(); | 104 | rp = event.repeatPattern(); |
105 | cmdRepeat->setText( tr("Repeat...") ); | 105 | cmdRepeat->setText( tr("Repeat...") ); |
106 | } | 106 | } |
107 | setRepeatLabel(); | 107 | setRepeatLabel(); |
108 | } | 108 | } |
109 | 109 | ||
110 | void DateEntry::setDates( const QDateTime& s, const QDateTime& e ) | 110 | void DateEntry::setDates( const QDateTime& s, const QDateTime& e ) |
111 | { | 111 | { |
112 | startDate = s.date(); | 112 | startDate = s.date(); |
113 | endDate = e.date(); | 113 | endDate = e.date(); |
114 | startTime = s.time(); | 114 | startTime = s.time(); |
115 | endTime = e.time(); | 115 | endTime = e.time(); |
116 | |||
116 | startDateChanged( s.date().year(), s.date().month(), s.date().day() ); | 117 | startDateChanged( s.date().year(), s.date().month(), s.date().day() ); |
117 | endDateChanged( e.date().year(), e.date().month(), e.date().day() ); | 118 | endDateChanged( e.date().year(), e.date().month(), e.date().day() ); |
119 | |||
118 | updateTimeEdit(true,true); | 120 | updateTimeEdit(true,true); |
119 | } | 121 | } |
120 | 122 | ||
121 | void DateEntry::updateTimeEdit(bool s, bool e) { | 123 | void DateEntry::updateTimeEdit(bool s, bool e) { |
122 | 124 | ||
123 | // Comboboxes | 125 | // Comboboxes |
124 | QString strStart, strEnd; | 126 | QString strStart, strEnd; |
125 | int shour, ehour; | 127 | int shour, ehour; |
126 | if ( ampm ) { | 128 | if ( ampm ) { |
127 | shour = startTime.hour(); | 129 | shour = startTime.hour(); |
128 | ehour = endTime.hour(); | 130 | ehour = endTime.hour(); |
129 | if ( shour >= 12 ) { | 131 | if ( shour >= 12 ) { |