calendarui/agendaeventviewer/src/agendaeventview.cpp
changeset 81 ce92091cbd61
parent 70 a5ed90760192
child 83 5aadd1120515
equal deleted inserted replaced
75:7ac58b2aae6f 81:ce92091cbd61
  1170 	disconnect(
  1170 	disconnect(
  1171 			mBackAction, SIGNAL(triggered()),
  1171 			mBackAction, SIGNAL(triggered()),
  1172 			this, SLOT(close()));
  1172 			this, SLOT(close()));
  1173 
  1173 
  1174 	window->removeView(mViewer);
  1174 	window->removeView(mViewer);
  1175 	if (AgendaEntry::TypeTodo == mAgendaEntry.type()) {
  1175 	// For To-do, if due date is in future, we retain it there. 
       
  1176 	// All the past incompleted to-dos will come on today.
       
  1177 	if ((AgendaEntry::TypeTodo == mAgendaEntry.type()) && (mAgendaEntry.startTime().date() <= QDate::currentDate())) {
  1176 	    mAgendaEntry.setStartAndEndTime(
  1178 	    mAgendaEntry.setStartAndEndTime(
  1177 	            CalenDateUtils::today(), CalenDateUtils::today());
  1179 	            CalenDateUtils::today(), CalenDateUtils::today());
  1178 	}
  1180 	}
  1179 	mOwner->viewingCompleted(mAgendaEntry.startTime().date());
  1181 	mOwner->viewingCompleted(mAgendaEntry.startTime().date());
  1180 
  1182