diff -r ef813d54df51 -r a5a1242fd2e8 clock/clockui/clocksettingsview/src/clocksettingsview.cpp --- a/clock/clockui/clocksettingsview/src/clocksettingsview.cpp Wed Aug 18 09:47:38 2010 +0300 +++ b/clock/clockui/clocksettingsview/src/clocksettingsview.cpp Thu Sep 02 20:25:23 2010 +0300 @@ -56,14 +56,16 @@ \param parent The parent of type QGraphicsWidget. */ -ClockSettingsView::ClockSettingsView(QObject *parent) -:QObject(parent) +ClockSettingsView::ClockSettingsView(QObject *parent, HbTranslator *translator, bool launchedByClock) +:QObject(parent), mTranslator(0), mLaunchedByClock(launchedByClock) { OstTraceFunctionEntry0( CLOCKSETTINGSVIEW_CLOCKSETTINGSVIEW_ENTRY ); // Load the translation file and install the editor specific translator - mTranslator = new HbTranslator("clocksettingsview"); - mTranslator->loadCommon(); + if(!translator) { + mTranslator = new HbTranslator("clocksettingsview"); + mTranslator->loadCommon(); + } // Construct the settings utility. mSettingsUtility = new SettingsUtility(); @@ -292,6 +294,11 @@ void ClockSettingsView::setupView() { OstTraceFunctionEntry0( CLOCKSETTINGSVIEW_SETUPVIEW_ENTRY ); + + if(!mLaunchedByClock) { + mSettingsView->setTitle(hbTrId("txt_clock_title_control_panel")); + } + HbMainWindow *window = hbInstance->allMainWindows().first(); window->addView(mSettingsView); window->setCurrentView(mSettingsView); @@ -309,7 +316,7 @@ // Create the custom prototype. QList prototypes = mSettingsForm->itemPrototypes(); - SettingsCustomItem *customPrototype = new SettingsCustomItem(mSettingsForm); + SettingsCustomItem *customPrototype = new SettingsCustomItem(mSettingsForm, mLaunchedByClock); prototypes.append(customPrototype); mSettingsForm->setItemPrototypes(prototypes);