calendarui/caleneditor/src/caleneditorcustomitem.cpp
changeset 70 a5ed90760192
parent 63 a3cb48f6c889
child 75 7ac58b2aae6f
equal deleted inserted replaced
64:1881ad52dc45 70:a5ed90760192
   272 	launch the location picker application using QT highway with the required service
   272 	launch the location picker application using QT highway with the required service
   273 */
   273 */
   274 
   274 
   275 void CalenEditorCustomItem::launchLocationPicker()
   275 void CalenEditorCustomItem::launchLocationPicker()
   276 {
   276 {
   277 		OstTraceFunctionEntry0( CALENEDITORCUSTOMITEM_LAUNCHLOCATIONPICKER_ENTRY );
   277 	OstTraceFunctionEntry0( CALENEDITORCUSTOMITEM_LAUNCHLOCATIONPICKER_ENTRY );
   278    	if(!mAppManager)
   278    	if(!mAppManager)
   279 	{
   279 	{
   280     	mAppManager = new XQApplicationManager();
   280     	mAppManager = new XQApplicationManager();
   281     }
   281     }
   282 	if(!mRequest)
   282 	if(!mRequest)
   416 void CalenEditorCustomItem::handleDate()
   416 void CalenEditorCustomItem::handleDate()
   417 {
   417 {
   418 	OstTraceFunctionEntry0( CALENEDITORCUSTOMITEM_HANDLEDATE_ENTRY );
   418 	OstTraceFunctionEntry0( CALENEDITORCUSTOMITEM_HANDLEDATE_ENTRY );
   419 	// Create a popup with datepicker for the user to select date.
   419 	// Create a popup with datepicker for the user to select date.
   420 	HbDialog *popUp = new HbDialog();
   420 	HbDialog *popUp = new HbDialog();
       
   421 	// Set the parent for the dialog
       
   422 	// Once the parent object is deleted the dialog will also be deleted
       
   423 	popUp->setParent(this);
   421 	popUp->setDismissPolicy(HbDialog::NoDismiss);
   424 	popUp->setDismissPolicy(HbDialog::NoDismiss);
   422 	popUp->setTimeout(HbDialog::NoTimeout);
   425 	popUp->setTimeout(HbDialog::NoTimeout);
   423 	popUp->setAttribute( Qt::WA_DeleteOnClose, true );
   426 	popUp->setAttribute( Qt::WA_DeleteOnClose, true );
   424 	
   427 	
   425 	// Set the proper heading
   428 	// Set the proper heading
   453 void CalenEditorCustomItem::handleTime()
   456 void CalenEditorCustomItem::handleTime()
   454 {
   457 {
   455 	OstTraceFunctionEntry0( CALENEDITORCUSTOMITEM_HANDLETIME_ENTRY );
   458 	OstTraceFunctionEntry0( CALENEDITORCUSTOMITEM_HANDLETIME_ENTRY );
   456 	// Create a popup with time picker for the user to select time.
   459 	// Create a popup with time picker for the user to select time.
   457 	HbDialog *popUp = new HbDialog();
   460 	HbDialog *popUp = new HbDialog();
       
   461 	// Set the parent for the dialog
       
   462 	// Once the parent object is deleted the dialog will also be deleted
       
   463 	popUp->setParent(this);
   458 	popUp->setDismissPolicy(HbDialog::NoDismiss);
   464 	popUp->setDismissPolicy(HbDialog::NoDismiss);
   459 	popUp->setTimeout(HbDialog::NoTimeout);
   465 	popUp->setTimeout(HbDialog::NoTimeout);
   460 	popUp->setAttribute( Qt::WA_DeleteOnClose, true );
   466 	popUp->setAttribute( Qt::WA_DeleteOnClose, true );
   461 	
   467 	
   462 	// Set the proper heading
   468 	// Set the proper heading