diff -r 224522e33db9 -r 25fe1fe642e3 messagingapp/msgsettings/settingsview/src/msgsettingsform.cpp --- a/messagingapp/msgsettings/settingsview/src/msgsettingsform.cpp Tue Jul 06 22:50:16 2010 +0530 +++ b/messagingapp/msgsettings/settingsview/src/msgsettingsform.cpp Fri Jul 09 14:46:10 2010 +0530 @@ -157,15 +157,10 @@ if (settingsView == MsgSettingsView::MMSView) { //set MMS Settings as expanded - QModelIndex index_mms = settingsModel->indexFromItem(mmsGroup); //TODO: dataform issue on expanding one group item - //this->setExpanded(index_mms, true); +// expandGroup(mmsGroup,true); } - else if(settingsView == MsgSettingsView::SMSView) - { - //expandSMSSettings(); - } - + } void MsgSettingsForm::refreshViewForm() @@ -227,6 +222,7 @@ this, SLOT(onPressedCustomButton())); } + } void MsgSettingsForm::addMMSGroupItem(HbDataFormModelItem* parent) @@ -489,10 +485,13 @@ mSettingEngine->setSMSMessageCenter(index); } -void MsgSettingsForm::expandSMSSettings() +void MsgSettingsForm::expandGroup(HbDataFormModelItem* group,bool expand) { - QModelIndex index_sms = settingsModel->indexFromItem(mSmsMCGroup); + QModelIndex index = settingsModel->indexFromItem(group); - this->setExpanded(index_sms, true); + if(index.isValid()) + { + this->setExpanded(index, expand); + } } //EOF