[Korganizer-devel] [Bug 114836] begin time of a task is standing under the eindtime, by the appointments is reverse
Reinhold Kainhofer
reinhold at kainhofer.com
Tue Jan 2 02:03:00 CET 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=114836
reinhold kainhofer com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From reinhold kainhofer com 2007-01-02 02:02 -------
SVN commit 618674 by kainhofe:
Fix a usability issue: In the event editor the start date/time is before the end date/time, while in the todo editor it is the other way. Change the todo editor to show the start date/time (which will admittedly be used less) before the due date/time (which is the end date/time for todos).
BUG: 114836
M +28 -27 koeditorgeneraltodo.cpp
--- branches/KDE/3.5/kdepim/korganizer/koeditorgeneraltodo.cpp #618673:618674
@ -69,13 +69,13 @
void KOEditorGeneralTodo::finishSetup()
{
QWidget::setTabOrder( mSummaryEdit, mLocationEdit );
- QWidget::setTabOrder( mLocationEdit, mDueCheck );
+ QWidget::setTabOrder( mLocationEdit, mStartCheck );
+ QWidget::setTabOrder( mStartCheck, mStartDateEdit );
+ QWidget::setTabOrder( mStartDateEdit, mStartTimeEdit );
+ QWidget::setTabOrder( mStartTimeEdit, mDueCheck );
QWidget::setTabOrder( mDueCheck, mDueDateEdit );
QWidget::setTabOrder( mDueDateEdit, mDueTimeEdit );
- QWidget::setTabOrder( mDueTimeEdit, mStartCheck );
- QWidget::setTabOrder( mStartCheck, mStartDateEdit );
- QWidget::setTabOrder( mStartDateEdit, mStartTimeEdit );
- QWidget::setTabOrder( mStartTimeEdit, mTimeButton );
+ QWidget::setTabOrder( mDueTimeEdit, mTimeButton );
QWidget::setTabOrder( mTimeButton, mCompletedCombo );
QWidget::setTabOrder( mCompletedCombo, mPriorityCombo );
QWidget::setTabOrder( mPriorityCombo, mAlarmButton );
@ -110,10 +110,28 @
layoutTimeBox->setSpacing(topLayout->spacing());
- QString whatsThis = i18n("Sets the due date for this to-do.");
+ QString whatsThis = i18n("Sets the start date for this to-do");
+ mStartCheck = new QCheckBox(i18n("Sta&rt:"),timeBoxFrame);
+ QWhatsThis::add( mStartCheck, whatsThis );
+ layoutTimeBox->addWidget(mStartCheck,0,0);
+ connect(mStartCheck,SIGNAL(toggled(bool)),SLOT(enableStartEdit(bool)));
+ connect(mStartCheck,SIGNAL(toggled(bool)),SLOT(startDateModified()));
+
+ mStartDateEdit = new KDateEdit(timeBoxFrame);
+ QWhatsThis::add( mStartDateEdit, whatsThis );
+ layoutTimeBox->addWidget(mStartDateEdit,0,1);
+ connect(mStartDateEdit,SIGNAL(dateChanged(const QDate&)),SLOT(startDateModified()));
+
+ mStartTimeEdit = new KTimeEdit(timeBoxFrame);
+ QWhatsThis::add( mStartTimeEdit,
+ i18n("Sets the start time for this to-do.") );
+ layoutTimeBox->addWidget(mStartTimeEdit,0,2);
+ connect(mStartTimeEdit,SIGNAL(timeChanged(QTime)),SLOT(startDateModified()));
+
+ whatsThis = i18n("Sets the due date for this to-do.");
mDueCheck = new QCheckBox(i18n("&Due:"),timeBoxFrame);
QWhatsThis::add( mDueCheck, whatsThis );
- layoutTimeBox->addWidget(mDueCheck,0,0);
+ layoutTimeBox->addWidget(mDueCheck,1,0);
connect(mDueCheck,SIGNAL(toggled(bool)),SLOT(enableDueEdit(bool)));
connect(mDueCheck,SIGNAL(toggled(bool)),SLOT(showAlarm()));
connect(mDueCheck,SIGNAL(toggled(bool)),SIGNAL(dueDateEditToggle(bool)));
@ -121,33 +139,15 @
mDueDateEdit = new KDateEdit(timeBoxFrame);
QWhatsThis::add( mDueDateEdit, whatsThis );
- layoutTimeBox->addWidget(mDueDateEdit,0,1);
+ layoutTimeBox->addWidget(mDueDateEdit,1,1);
connect(mDueDateEdit,SIGNAL(dateChanged(const QDate&)),SLOT(dateChanged()));
mDueTimeEdit = new KTimeEdit(timeBoxFrame);
QWhatsThis::add( mDueTimeEdit,
i18n("Sets the due time for this to-do.") );
- layoutTimeBox->addWidget(mDueTimeEdit,0,2);
+ layoutTimeBox->addWidget(mDueTimeEdit,1,2);
connect(mDueTimeEdit,SIGNAL(timeChanged( QTime )),SLOT(dateChanged()));
- whatsThis = i18n("Sets the start date for this to-do");
- mStartCheck = new QCheckBox(i18n("Sta&rt:"),timeBoxFrame);
- QWhatsThis::add( mStartCheck, whatsThis );
- layoutTimeBox->addWidget(mStartCheck,1,0);
- connect(mStartCheck,SIGNAL(toggled(bool)),SLOT(enableStartEdit(bool)));
- connect(mStartCheck,SIGNAL(toggled(bool)),SLOT(startDateModified()));
-
- mStartDateEdit = new KDateEdit(timeBoxFrame);
- QWhatsThis::add( mStartDateEdit, whatsThis );
- layoutTimeBox->addWidget(mStartDateEdit,1,1);
- connect(mStartDateEdit,SIGNAL(dateChanged(const QDate&)),SLOT(startDateModified()));
-
- mStartTimeEdit = new KTimeEdit(timeBoxFrame);
- QWhatsThis::add( mStartTimeEdit,
- i18n("Sets the start time for this to-do.") );
- layoutTimeBox->addWidget(mStartTimeEdit,1,2);
- connect(mStartTimeEdit,SIGNAL(timeChanged(QTime)),SLOT(startDateModified()));
-
mTimeButton = new QCheckBox(i18n("Ti&me associated"),timeBoxFrame);
QWhatsThis::add( mTimeButton,
i18n("Sets whether or not this to-do's start and due dates "
@ -353,6 +353,7 @
}
}
+ // TODO: Don't use the due date for the recurrence, but the start date (cf. rfc 2445)
if ( todo->doesRecur() && !mStartDateModified ) {
todo->setDtDue( tmpDueDT );
} else {
More information about the Korganizer-devel
mailing list