summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-10-10 00:54:59 (UTC)
committer zautrix <zautrix>2005-10-10 00:54:59 (UTC)
commit999e15691b8cd67db766a60906b96b68da8cfb30 (patch) (unidiff)
tree4b4873b893d1a1099ea4cf3edd175f4cd03163be
parentdad8e8745591620c951cefd835ea7ea727db8925 (diff)
downloadkdepimpi-999e15691b8cd67db766a60906b96b68da8cfb30.zip
kdepimpi-999e15691b8cd67db766a60906b96b68da8cfb30.tar.gz
kdepimpi-999e15691b8cd67db766a60906b96b68da8cfb30.tar.bz2
chaged set todo complete in viewer
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeventviewerdialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/korganizer/koeventviewerdialog.cpp b/korganizer/koeventviewerdialog.cpp
index 0763825..2e936f3 100644
--- a/korganizer/koeventviewerdialog.cpp
+++ b/korganizer/koeventviewerdialog.cpp
@@ -231,33 +231,35 @@ void KOEventViewerDialog::showIncidence()
231 } 231 }
232 232
233 if ( mIncidence ){ 233 if ( mIncidence ){
234 QDate date; 234 QDate date;
235 if ( mIncidence->type() == "Todo" ) { 235 if ( mIncidence->type() == "Todo" ) {
236 /* 236 /*
237 if ( ((Todo*)mIncidence)->hasDueDate() ) 237 if ( ((Todo*)mIncidence)->hasDueDate() )
238 date = ((Todo*)mIncidence)->dtDue().date(); 238 date = ((Todo*)mIncidence)->dtDue().date();
239 else { 239 else {
240 globalFlagBlockAgenda = 2; 240 globalFlagBlockAgenda = 2;
241 emit showAgendaView( false ); 241 emit showAgendaView( false );
242 return; 242 return;
243 } 243 }
244 */ 244 */
245 ((Todo*)mIncidence)->setCompleted( true ); 245 ((Todo*)mIncidence)->setCompleted( true );
246 ((Todo*)mIncidence)->setCompleted(QDateTime::currentDateTime() ); 246 ((Todo*)mIncidence)->setCompleted(QDateTime::currentDateTime() );
247 emit todoCompleted(((Todo*)mIncidence)); 247 emit todoCompleted(((Todo*)mIncidence));
248 mEventViewer->setTodo((Todo*)mIncidence);
249 return;
248 } else { 250 } else {
249 date = mIncidence->dtStart().date(); 251 date = mIncidence->dtStart().date();
250 globalFlagBlockAgenda = 1; 252 globalFlagBlockAgenda = 1;
251 emit showAgendaView( false ); 253 emit showAgendaView( false );
252 globalFlagBlockAgenda = 2; 254 globalFlagBlockAgenda = 2;
253 emit jumpToTime( date ); 255 emit jumpToTime( date );
254 } 256 }
255 close(); 257 close();
256 } 258 }
257} 259}
258void KOEventViewerDialog::keyPressEvent ( QKeyEvent * e ) 260void KOEventViewerDialog::keyPressEvent ( QKeyEvent * e )
259{ 261{
260 switch ( e->key() ) { 262 switch ( e->key() ) {
261 263
262 case Qt::Key_A : 264 case Qt::Key_A :
263 case Qt::Key_L : 265 case Qt::Key_L :