summaryrefslogtreecommitdiffabout
path: root/korganizer/koeventviewerdialog.cpp
authorzautrix <zautrix>2005-01-15 00:20:28 (UTC)
committer zautrix <zautrix>2005-01-15 00:20:28 (UTC)
commit80da9080c1c33c4704806c442179522edce06bd2 (patch) (side-by-side diff)
treef17bfb786b7c85d4d3bf93545494dafdf9ec5184 /korganizer/koeventviewerdialog.cpp
parentd937154e5ae3691dda55fac9114142f92e29e37b (diff)
downloadkdepimpi-80da9080c1c33c4704806c442179522edce06bd2.zip
kdepimpi-80da9080c1c33c4704806c442179522edce06bd2.tar.gz
kdepimpi-80da9080c1c33c4704806c442179522edce06bd2.tar.bz2
completed todo
Diffstat (limited to 'korganizer/koeventviewerdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeventviewerdialog.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/korganizer/koeventviewerdialog.cpp b/korganizer/koeventviewerdialog.cpp
index 68c0e1a..772fd95 100644
--- a/korganizer/koeventviewerdialog.cpp
+++ b/korganizer/koeventviewerdialog.cpp
@@ -151,3 +151,6 @@ void KOEventViewerDialog::addEvent(Event *event)
mIncidence = event;
- findButton( Close )->setFocus();
+ findButton( Close )->setFocus();
+ if ( !mSyncMode ) {
+ findButton( User1 )->setText( i18n("Agenda"));
+ }
}
@@ -158,3 +161,6 @@ void KOEventViewerDialog::setTodo(Todo *event)
mIncidence = (Incidence*)event;
- findButton( Close )->setFocus();
+ findButton( Close )->setFocus();
+ if ( !mSyncMode ) {
+ findButton( User1 )->setText( i18n("Set complete"));
+ }
}
@@ -165,2 +171,5 @@ void KOEventViewerDialog::setJournal(Journal *j)
findButton( Close )->setFocus();
+ if ( !mSyncMode ) {
+ findButton( User1 )->setText( i18n("Agenda"));
+ }
}
@@ -201,2 +210,3 @@ void KOEventViewerDialog::showIncidence()
if ( mIncidence->type() == "Todo" ) {
+ /*
if ( ((Todo*)mIncidence)->hasDueDate() )
@@ -208,2 +218,8 @@ void KOEventViewerDialog::showIncidence()
}
+ */
+ ((Todo*)mIncidence)->setCompleted( true );
+ hide();
+ emit todoCompleted(((Todo*)mIncidence));
+ return;
+
} else