equal
deleted
inserted
replaced
133 destDataItem->setDestinationId(destId); |
133 destDataItem->setDestinationId(destId); |
134 destDataItem->setDestinationName(dest); |
134 destDataItem->setDestinationName(dest); |
135 connect(destDataItem, SIGNAL(destChanged()), this, SLOT(updateDestinationInformation())); |
135 connect(destDataItem, SIGNAL(destChanged()), this, SLOT(updateDestinationInformation())); |
136 |
136 |
137 // Use ItemDataHelper to make connections |
137 // Use ItemDataHelper to make connections |
138 QObject* form = this->model()->parent(); |
138 QObject* form = QObject::parent()->parent(); |
139 mItemDataHelper->bindToForm(static_cast<HbDataForm*>(form)); |
139 mItemDataHelper->bindToForm(static_cast<HbDataForm*>(form)); |
140 |
140 |
141 // Insert Child to correct position |
141 // Insert Child to correct position |
142 QList<QSharedPointer<CmDestinationShim> > destinationList; |
142 QList<QSharedPointer<CmDestinationShim> > destinationList; |
143 fetchDestinations(destinationList); |
143 fetchDestinations(destinationList); |
235 QString iapCount = getDestinationAdditionalText(apCount); |
235 QString iapCount = getDestinationAdditionalText(apCount); |
236 destDataItem->setContentWidgetData(QString("additionalText"), iapCount); |
236 destDataItem->setContentWidgetData(QString("additionalText"), iapCount); |
237 destDataItem->setContentWidgetData(QString("text"), destDataItem->destinationName()); |
237 destDataItem->setContentWidgetData(QString("text"), destDataItem->destinationName()); |
238 } |
238 } |
239 // Update UI |
239 // Update UI |
240 HbDataForm *form = static_cast<HbDataForm*>(this->model()->parent()); |
240 HbDataForm *form = static_cast<HbDataForm*>(QObject::parent()->parent()); |
241 HbDataFormModel* model = static_cast<HbDataFormModel*>(this->model()); |
241 HbDataFormModel* model = static_cast<HbDataFormModel*>(QObject::parent()); |
242 QModelIndex index = model->indexFromItem(this); |
242 QModelIndex index = model->indexFromItem(this); |
243 HbDataFormViewItem *viewItem = form->dataFormViewItem(index); |
243 HbDataFormViewItem *viewItem = static_cast<HbDataFormViewItem *>(form->itemByIndex(index)); |
244 viewItem->setExpanded(false); |
244 viewItem->setExpanded(false); |
245 viewItem->setExpanded(true); |
245 viewItem->setExpanded(true); |
246 OstTraceFunctionExit0(CPDESTINATIONGROUP_UPDATEDESTINATIONINFORMATION_EXIT); |
246 OstTraceFunctionExit0(CPDESTINATIONGROUP_UPDATEDESTINATIONINFORMATION_EXIT); |
247 } |
247 } |
248 |
248 |