calendarui/caleneditor/src/caleneditordatahandler.cpp
changeset 57 bb2d3e476f29
parent 55 2c54b51f39c4
child 70 a5ed90760192
equal deleted inserted replaced
55:2c54b51f39c4 57:bb2d3e476f29
    21 #include <hbdataformmodelitem.h>
    21 #include <hbdataformmodelitem.h>
    22 
    22 
    23 // User Includes
    23 // User Includes
    24 #include "caleneditordatahandler.h"
    24 #include "caleneditordatahandler.h"
    25 #include "calendateutils.h"
    25 #include "calendateutils.h"
       
    26 #include "calenagendautils.h"
    26 #include <agendaentry.h>
    27 #include <agendaentry.h>
    27 #include "OstTraceDefinitions.h"
    28 #include "OstTraceDefinitions.h"
    28 #ifdef OST_TRACE_COMPILER_IN_USE
    29 #ifdef OST_TRACE_COMPILER_IN_USE
    29 #include "caleneditordatahandlerTraces.h"
    30 #include "caleneditordatahandlerTraces.h"
    30 #endif
    31 #endif
   168 bool CalenEditorDataHandler::isAllDayEdited() const
   169 bool CalenEditorDataHandler::isAllDayEdited() const
   169 {
   170 {
   170 	OstTraceFunctionEntry0( CALENEDITORDATAHANDLER_ISALLDAYEDITED_ENTRY );
   171 	OstTraceFunctionEntry0( CALENEDITORDATAHANDLER_ISALLDAYEDITED_ENTRY );
   171 	HbDataFormModelItem* alldayItem = mCalenEditor->allDayCheckBoxItem();
   172 	HbDataFormModelItem* alldayItem = mCalenEditor->allDayCheckBoxItem();
   172 	if (alldayItem) {
   173 	if (alldayItem) {
   173 		if (mOriginalEntry->type() == AgendaEntry::TypeEvent) {
   174 		if (CalenAgendaUtils::isAlldayEvent(*mOriginalEntry)) {
   174 			if (alldayItem->contentWidgetData("checkState")
   175 			if (alldayItem->contentWidgetData("checkState")
   175 			        == Qt::Checked) {
   176 			        == Qt::Checked) {
   176 				OstTraceFunctionExit0( CALENEDITORDATAHANDLER_ISALLDAYEDITED_EXIT );
   177 				OstTraceFunctionExit0( CALENEDITORDATAHANDLER_ISALLDAYEDITED_EXIT );
   177 				return false;
   178 				return false;
   178 			} else {
   179 			} else {