equal
deleted
inserted
replaced
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: Private implementatin for class CpSettingFormEntryItemData. |
15 * |
15 * |
16 */ |
16 */ |
17 #include "cpsettingformentryitemdata_p.h" |
17 #include "cpsettingformentryitemdata_p.h" |
18 #include <QVariant> |
18 #include <QVariant> |
19 #include <hbdataformviewitem.h> |
19 #include <hbdataformviewitem.h> |
129 switch (itemType) |
129 switch (itemType) |
130 { |
130 { |
131 default: break; |
131 default: break; |
132 case CpSettingFormEntryItemData::ListEntryItem: |
132 case CpSettingFormEntryItemData::ListEntryItem: |
133 mParent->setData(HbDataFormModelItem::DescriptionRole , description); |
133 mParent->setData(HbDataFormModelItem::DescriptionRole , description); |
|
134 // set a useless property for model item to emit a datachanged signal |
|
135 // this is a workaround for informing the change event of description in list item |
|
136 mParent->setContentWidgetData("Useless", true); |
134 break; |
137 break; |
135 case CpSettingFormEntryItemData::ButtonEntryItem: |
138 case CpSettingFormEntryItemData::ButtonEntryItem: |
136 mParent->setContentWidgetData(QString("additionalText"),QVariant(description)); |
139 mParent->setContentWidgetData(QString("additionalText"),QVariant(description)); |
137 break; |
140 break; |
138 } |
141 } |