Diffstat (limited to 'libopie/orecurrancewidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/orecurrancewidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/orecurrancewidget.cpp b/libopie/orecurrancewidget.cpp index 0484ab9..db86184 100644 --- a/libopie/orecurrancewidget.cpp +++ b/libopie/orecurrancewidget.cpp | |||
@@ -156,49 +156,49 @@ ORecur ORecurranceWidget::recurrence()const { | |||
156 | rpTmp.setDays( day2 ); | 156 | rpTmp.setDays( day2 ); |
157 | } | 157 | } |
158 | break; | 158 | break; |
159 | case Month: | 159 | case Month: |
160 | if ( cmdExtra1->isOn() ) | 160 | if ( cmdExtra1->isOn() ) |
161 | rpTmp.setType( ORecur::MonthlyDay ); | 161 | rpTmp.setType( ORecur::MonthlyDay ); |
162 | else if ( cmdExtra2->isOn() ) | 162 | else if ( cmdExtra2->isOn() ) |
163 | rpTmp.setType( ORecur::MonthlyDate ); | 163 | rpTmp.setType( ORecur::MonthlyDate ); |
164 | // figure out the montly day... | 164 | // figure out the montly day... |
165 | rpTmp.setPosition( week( start ) ); | 165 | rpTmp.setPosition( week( start ) ); |
166 | break; | 166 | break; |
167 | case Year: | 167 | case Year: |
168 | rpTmp.setType( ORecur::Yearly ); | 168 | rpTmp.setType( ORecur::Yearly ); |
169 | break; | 169 | break; |
170 | } | 170 | } |
171 | break; // no need to keep looking! | 171 | break; // no need to keep looking! |
172 | } | 172 | } |
173 | } | 173 | } |
174 | rpTmp.setFrequency(spinFreq->value() ); | 174 | rpTmp.setFrequency(spinFreq->value() ); |
175 | rpTmp.setHasEndDate( !chkNoEnd->isChecked() ); | 175 | rpTmp.setHasEndDate( !chkNoEnd->isChecked() ); |
176 | if ( rpTmp.hasEndDate() ) { | 176 | if ( rpTmp.hasEndDate() ) { |
177 | rpTmp.setEndDate( end ); | 177 | rpTmp.setEndDate( end ); |
178 | } | 178 | } |
179 | // timestamp it... | 179 | // timestamp it... |
180 | rpTmp.setCreateTime( time( NULL ) ); | 180 | // rpTmp.setCreateTime( ); current DateTime is already set -zecke |
181 | return rpTmp; | 181 | return rpTmp; |
182 | } | 182 | } |
183 | QDate ORecurranceWidget::endDate()const { | 183 | QDate ORecurranceWidget::endDate()const { |
184 | return end; | 184 | return end; |
185 | } | 185 | } |
186 | void ORecurranceWidget::slotSetRType(int rtype) { | 186 | void ORecurranceWidget::slotSetRType(int rtype) { |
187 | // now call the right function based on the type... | 187 | // now call the right function based on the type... |
188 | currInterval = static_cast<repeatButtons>(rtype); | 188 | currInterval = static_cast<repeatButtons>(rtype); |
189 | switch ( currInterval ) { | 189 | switch ( currInterval ) { |
190 | case None: | 190 | case None: |
191 | setupNone(); | 191 | setupNone(); |
192 | break; | 192 | break; |
193 | case Day: | 193 | case Day: |
194 | setupDaily(); | 194 | setupDaily(); |
195 | break; | 195 | break; |
196 | case Week: | 196 | case Week: |
197 | setupWeekly(); | 197 | setupWeekly(); |
198 | slotWeekLabel(); | 198 | slotWeekLabel(); |
199 | break; | 199 | break; |
200 | case Month: | 200 | case Month: |
201 | setupMonthly(); | 201 | setupMonthly(); |
202 | cmdExtra2->setOn( TRUE ); | 202 | cmdExtra2->setOn( TRUE ); |
203 | slotMonthLabel( 1 ); | 203 | slotMonthLabel( 1 ); |
204 | break; | 204 | break; |