Diffstat (limited to 'korganizer/koeditorgeneraltodo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koeditorgeneraltodo.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/korganizer/koeditorgeneraltodo.cpp b/korganizer/koeditorgeneraltodo.cpp index e86b4d0..0a734ee 100644 --- a/korganizer/koeditorgeneraltodo.cpp +++ b/korganizer/koeditorgeneraltodo.cpp @@ -129,3 +129,4 @@ void KOEditorGeneralTodo::initTime(QWidget *parent,QBoxLayout *topLayout) connect(mStartDateEdit,SIGNAL(setTimeTo(QTime)),mStartTimeEdit,SLOT(setTime(QTime))); - + connect(mStartDateEdit, SIGNAL(dateChanged(QDate)), + this, SLOT(startDateChanged(QDate))); // some more layouting @@ -397,3 +398,7 @@ void KOEditorGeneralTodo::enableStartEdit( bool enable ) } - +void KOEditorGeneralTodo::startDateChanged(QDate newdate) +{ + if ( mDueCheck->isChecked() ) + emit dateTimesChanged(newdate,mDueDateEdit->date()); +} void KOEditorGeneralTodo::enableTimeEdits(bool enable) |