clock/clockui/clockalarmeditor/src/clockalarmeditor.cpp
changeset 63 a3cb48f6c889
parent 57 bb2d3e476f29
child 64 1881ad52dc45
equal deleted inserted replaced
57:bb2d3e476f29 63:a3cb48f6c889
   360 		}
   360 		}
   361 	} else {
   361 	} else {
   362 		// Check if the Alarm days item is added.
   362 		// Check if the Alarm days item is added.
   363 		// Remove if already added.
   363 		// Remove if already added.
   364 		if (mAlarmDayItemInserted) {
   364 		if (mAlarmDayItemInserted) {
       
   365 			mAlarmEditorForm->removeConnection(
       
   366 								mAlarmDayItem, SIGNAL(currentIndexChanged(int)),
       
   367 								this, SLOT(handleDayChanged(int)));
   365 			mAlarmEditorModel->removeItem(mAlarmDayItem);
   368 			mAlarmEditorModel->removeItem(mAlarmDayItem);
   366 			mAlarmDayItemInserted = false;
   369 			mAlarmDayItemInserted = false;
   367 		}
   370 		}
   368 	}
   371 	}
   369 	OstTraceFunctionExit0( DUP1_CLOCKALARMEDITOR_HANDLEOCCURENCECHANGED_EXIT );
   372 	OstTraceFunctionExit0( DUP1_CLOCKALARMEDITOR_HANDLEOCCURENCECHANGED_EXIT );
   522 		HbLineEdit *editor = static_cast<HbLineEdit *>(
   525 		HbLineEdit *editor = static_cast<HbLineEdit *>(
   523 				viewItem->dataItemContentWidget());
   526 				viewItem->dataItemContentWidget());
   524 		
   527 		
   525 		editor->setSelection(0, 0);
   528 		editor->setSelection(0, 0);
   526 		if (editor->text().isEmpty()) {
   529 		if (editor->text().isEmpty()) {
   527 	        editor->setText(hbTrId("txt_clk_formlabel_val_alarm"));
   530 	    	mAlarmDescription->setContentWidgetData(
       
   531 	    			"text", hbTrId("txt_clk_formlabel_val_alarm"));
   528         }
   532         }
   529 
   533 
   530 	}
   534 	}
   531 }
   535 }
   532 
   536