equal
deleted
inserted
replaced
87 setText(text); |
87 setText(text); |
88 setDescription(description); |
88 setDescription(description); |
89 setIcon(icon.iconName()); |
89 setIcon(icon.iconName()); |
90 } |
90 } |
91 |
91 |
92 |
92 /*! |
|
93 Construct a new CpSettingFormEntryItemData with the given type, text, description, icon name, and parent. |
|
94 */ |
93 CpSettingFormEntryItemData::CpSettingFormEntryItemData( |
95 CpSettingFormEntryItemData::CpSettingFormEntryItemData( |
94 EntryItemType type, |
96 EntryItemType type, |
95 CpItemDataHelper &itemDataHelper, |
97 CpItemDataHelper &itemDataHelper, |
96 const QString &text /*= QString()*/, |
98 const QString &text /*= QString()*/, |
97 const QString &description /*= QString()*/, |
99 const QString &description /*= QString()*/, |
107 setText(text); |
109 setText(text); |
108 setDescription(description); |
110 setDescription(description); |
109 setIcon(iconName); |
111 setIcon(iconName); |
110 } |
112 } |
111 |
113 |
|
114 /*! |
|
115 Construct a new CpSettingFormEntryItemData with the given type, text, description, icon name, and parent. |
|
116 */ |
112 CpSettingFormEntryItemData::CpSettingFormEntryItemData( |
117 CpSettingFormEntryItemData::CpSettingFormEntryItemData( |
113 EntryItemType type, |
118 EntryItemType type, |
114 HbDataForm *dataForm, |
119 HbDataForm *dataForm, |
115 const QString &text /*= QString()*/, |
120 const QString &text /*= QString()*/, |
116 const QString &description /*= QString()*/, |
121 const QString &description /*= QString()*/, |
168 void CpSettingFormEntryItemData::setDescription(const QString &description) |
173 void CpSettingFormEntryItemData::setDescription(const QString &description) |
169 { |
174 { |
170 d_ptr->setDescription(description); |
175 d_ptr->setDescription(description); |
171 } |
176 } |
172 |
177 |
173 |
178 /*! |
|
179 Get the icon name of the entry item. |
|
180 */ |
174 QString CpSettingFormEntryItemData::iconName() const |
181 QString CpSettingFormEntryItemData::iconName() const |
175 { |
182 { |
176 return d_ptr->iconName(); |
183 return d_ptr->iconName(); |
177 } |
184 } |
178 |
185 |
|
186 /*! |
|
187 Set the icon name of the entry item. |
|
188 */ |
179 void CpSettingFormEntryItemData::setIconName(const QString &icon) |
189 void CpSettingFormEntryItemData::setIconName(const QString &icon) |
180 { |
190 { |
181 d_ptr->setIconName(icon); |
191 d_ptr->setIconName(icon); |
182 } |
192 } |
183 |
193 |
195 void CpSettingFormEntryItemData::setEntryItemIcon(const HbIcon& icon) |
205 void CpSettingFormEntryItemData::setEntryItemIcon(const HbIcon& icon) |
196 { |
206 { |
197 d_ptr->setEntryItemIcon(icon); |
207 d_ptr->setEntryItemIcon(icon); |
198 } |
208 } |
199 |
209 |
|
210 /*! |
|
211 Launch the setting view when user clicks the entry item. |
|
212 */ |
200 void CpSettingFormEntryItemData::onLaunchView() |
213 void CpSettingFormEntryItemData::onLaunchView() |
201 { |
214 { |
202 //avoid being launched more than one times |
215 //avoid being launched more than one times |
203 if (d_ptr->mSettingViewPtr.isNull()) { |
216 if (d_ptr->mSettingViewPtr.isNull()) { |
204 d_ptr->mSettingViewPtr = createSettingView(); |
217 d_ptr->mSettingViewPtr = createSettingView(); |