alarmui/alarmalertwidget/alarmalertplugin/src/alarmalertwidget_p.cpp
changeset 63 a3cb48f6c889
parent 57 bb2d3e476f29
child 70 a5ed90760192
equal deleted inserted replaced
57:bb2d3e476f29 63:a3cb48f6c889
   415 				mAlertDocLoader->findWidget("alarmDate"));
   415 				mAlertDocLoader->findWidget("alarmDate"));
   416 		if (!alarmDate) {
   416 		if (!alarmDate) {
   417 			qFatal("Unable to find the alarmDate label");
   417 			qFatal("Unable to find the alarmDate label");
   418 		}
   418 		}
   419 		alarmDate->setPlainText(mAlarmDate);
   419 		alarmDate->setPlainText(mAlarmDate);
   420 		HbLabel *alarmDateNonTimed = qobject_cast<HbLabel*> (
       
   421 				mAlertDocLoader->findWidget("nonTimedAlarmDate"));
       
   422 		if (!alarmDateNonTimed) {
       
   423 			qFatal("Unable to find the nonTimedAlarmDate label");
       
   424 		}
       
   425 		alarmDateNonTimed->hide();
       
   426 	}else {
   420 	}else {
   427 		mAlertDocLoader->load(
   421 		mAlertDocLoader->load(
   428 				alarmNormalUICalendarDocml, "nonTimedAlarm",&success);
   422 				alarmNormalUICalendarDocml, "nonTimedAlarm",&success);
   429 		if (!success) {
   423 		if (!success) {
   430 			qFatal("Unable to load the nonTimedAlarm section");
   424 			qFatal("Unable to load the nonTimedAlarm section");
   438 		HbLabel *alarmDate = qobject_cast<HbLabel*> (
   432 		HbLabel *alarmDate = qobject_cast<HbLabel*> (
   439 				mAlertDocLoader->findWidget("alarmDate"));
   433 				mAlertDocLoader->findWidget("alarmDate"));
   440 		if (!alarmDate) {
   434 		if (!alarmDate) {
   441 			qFatal("Unable to find the alarmDate label");
   435 			qFatal("Unable to find the alarmDate label");
   442 		}
   436 		}
   443 		alarmDate->hide();
   437 		alarmDate->setPlainText(mAlarmDate);
   444 		HbLabel *alarmDateNonTimed = qobject_cast<HbLabel*> (
       
   445 				mAlertDocLoader->findWidget("nonTimedAlarmDate"));
       
   446 		if (!alarmDateNonTimed) {
       
   447 			qFatal("Unable to find the alarmDateNonTimed label");
       
   448 		}
       
   449 		alarmDateNonTimed->setPlainText(mAlarmDate);
       
   450 	}
   438 	}
   451 
   439 
   452 	QGraphicsWidget *headingWidget = mAlertDocLoader->findWidget("heading");
   440 	QGraphicsWidget *headingWidget = mAlertDocLoader->findWidget("heading");
   453 	if (!headingWidget) {
   441 	if (!headingWidget) {
   454 		qFatal("Unable to find the heading widget");
   442 		qFatal("Unable to find the heading widget");