equal
deleted
inserted
replaced
247 |
247 |
248 Calling any function on \a icon after this one may not have any effect on the |
248 Calling any function on \a icon after this one may not have any effect on the |
249 icon displayed by the HbIconItem. Use the setters in HbIconItem instead. Of course |
249 icon displayed by the HbIconItem. Use the setters in HbIconItem instead. Of course |
250 the settings set on \a icon before calling setIcon() will all be taken into account. |
250 the settings set on \a icon before calling setIcon() will all be taken into account. |
251 |
251 |
|
252 The icon-specific parameters (flags, color, mirroring mode) set via the HbIconItem |
|
253 setters before are lost as this function causes the entire underlying icon to be |
|
254 replaced with a new one. |
|
255 |
252 \param icon the HbIcon instance that this HbIconItem displays. |
256 \param icon the HbIcon instance that this HbIconItem displays. |
253 |
257 |
254 \sa icon() |
258 \sa icon() |
255 */ |
259 */ |
256 void HbIconItem::setIcon(const HbIcon &icon, bool reserved) |
260 void HbIconItem::setIcon(const HbIcon &icon, bool reserved) |
289 \sa alignment |
293 \sa alignment |
290 */ |
294 */ |
291 void HbIconItem::setAlignment(Qt::Alignment alignment) |
295 void HbIconItem::setAlignment(Qt::Alignment alignment) |
292 { |
296 { |
293 Q_D(HbIconItem); |
297 Q_D(HbIconItem); |
|
298 d->setApiProtectionFlag(HbWidgetBasePrivate::AC_IconAlign, true); |
294 if (d->mAlignment != alignment) { |
299 if (d->mAlignment != alignment) { |
295 d->mAlignment = alignment; |
300 d->mAlignment = alignment; |
296 update(); |
301 update(); |
297 } |
302 } |
298 } |
303 } |