clock/clockui/clocksettingsview/src/clockregionalsettingsview.cpp
changeset 63 a3cb48f6c889
parent 57 bb2d3e476f29
child 70 a5ed90760192
--- a/clock/clockui/clocksettingsview/src/clockregionalsettingsview.cpp	Mon Aug 09 18:30:52 2010 +0530
+++ b/clock/clockui/clocksettingsview/src/clockregionalsettingsview.cpp	Wed Aug 25 14:02:13 2010 +0530
@@ -54,10 +54,11 @@
 /*!
 	Default constructor.
  */
-ClockRegionalSettingsView::ClockRegionalSettingsView(QObject *parent)
+ClockRegionalSettingsView::ClockRegionalSettingsView(QObject *parent, bool launchedByClock)
 :QObject(parent),
  mView(0),
- mLoader(0)
+ mLoader(0),
+ mLauncedByClock(launchedByClock)
 {
 	OstTraceFunctionEntry0( CLOCKREGIONALSETTINGSVIEW_CLOCKREGIONALSETTINGSVIEW_ENTRY );
 	// Construct the document loader.
@@ -142,6 +143,9 @@
 	createModel();
 
 	// Set the view as the current view.
+	if(!mLauncedByClock) {
+	    mView->setTitle(hbTrId("txt_clock_title_control_panel"));
+	}
 	HbMainWindow *window = hbInstance->allMainWindows().first();
 	window->addView(mView);
 	window->setCurrentView(mView);
@@ -437,7 +441,7 @@
 	
 	HbDataFormModelItem::DataItemType workdaysItemType =
 			static_cast<HbDataFormModelItem::DataItemType>
-			(HbDataFormModelItem::CustomItemBase + 50);
+			(HbDataFormModelItem::CustomItemBase + WorkdaysItemOffset);
 	item = new HbDataFormModelItem(workdaysItemType,
 			hbTrId("txt_clock_setlabel_workdays"));
 	mFormModel->appendDataFormItem(item);