equal
deleted
inserted
replaced
140 } |
140 } |
141 |
141 |
142 void CpMainView::onDataFormItemActivated(const QModelIndex &index) |
142 void CpMainView::onDataFormItemActivated(const QModelIndex &index) |
143 { |
143 { |
144 CPFW_LOG("CpMainView::onDataFormItemActivated"); |
144 CPFW_LOG("CpMainView::onDataFormItemActivated"); |
145 CpSettingFormItemData *itemData = static_cast<CpSettingFormItemData *>(mMainModel->itemFromIndex(index)); |
145 HbDataFormModelItem *modelItem = mMainModel->itemFromIndex(index); |
146 |
146 if (modelItem != 0 && modelItem->type() == HbDataFormModelItem::GroupItem) { |
147 if (CpCategorySettingFormItemData *categoryItemData = qobject_cast<CpCategorySettingFormItemData*>(itemData)) { |
147 CpSettingFormItemData *itemData = static_cast<CpSettingFormItemData *>(modelItem); |
148 categoryItemData->initialize(*mItemDataHelper); |
148 if (CpCategorySettingFormItemData *categoryItemData = qobject_cast<CpCategorySettingFormItemData *>(itemData)) { |
149 } |
149 categoryItemData->initialize(*mItemDataHelper); |
|
150 } |
|
151 } |
|
152 |
150 } |
153 } |
151 void CpMainView::onAboutToChangeView(HbView * oldView, HbView *newView) |
154 void CpMainView::onAboutToChangeView(HbView * oldView, HbView *newView) |
152 { |
155 { |
153 Q_UNUSED(newView); |
156 Q_UNUSED(newView); |
154 if (this == oldView) { |
157 if (this == oldView) { |