--- a/phonebookui/pbkcommonui/src/cntsettingsmodel.cpp Thu Sep 02 20:16:15 2010 +0300
+++ b/phonebookui/pbkcommonui/src/cntsettingsmodel.cpp Fri Sep 17 08:27:32 2010 +0300
@@ -77,13 +77,13 @@
mNameListRowSettingkey = new XQSettingsKey(XQSettingsKey::TargetCentralRepository,
KCRCntSettings.iUid,
KCntNameListRowSetting);
- int settingValue = mSettings.readItemValue(*mNameListRowSettingkey, XQSettingsManager::TypeInt).toInt();
+ int settingValue = mSettings.readItemValue(*mNameListRowSettingkey, XQSettingsManager::TypeInt).toInt();
if (settingValue == CntOneRowNameOnly) {
- rowSetting->setContentWidgetData("currentIndex", 0 );
- } else if (settingValue == CntTwoRowsNameAndPhoneNumber) {
- rowSetting->setContentWidgetData("currentIndex", 1 );
- }
+ rowSetting->setContentWidgetData("currentIndex", 0 );
+ } else if (settingValue == CntTwoRowsNameAndPhoneNumber) {
+ rowSetting->setContentWidgetData("currentIndex", 1 );
+ }
}
CntSettingsModel::~CntSettingsModel()
@@ -112,7 +112,7 @@
}
else if (topLeft.row() == 1) {
int selected = itemFromIndex(topLeft)->contentWidgetData( "currentIndex" ).toInt();
- if (selected == 0) {
+ if (selected == 0) {
written = mSettings.writeItemValue(*mNameListRowSettingkey, QVariant(CntOneRowNameOnly));
} else if (selected == 1) {
written = mSettings.writeItemValue(*mNameListRowSettingkey, QVariant(CntTwoRowsNameAndPhoneNumber));