equal
deleted
inserted
replaced
137 setColor(). If this flag is not set then the color that is set with setColor() is |
137 setColor(). If this flag is not set then the color that is set with setColor() is |
138 ignored, unless the icon refers some theme graphics. For icons coming from the |
138 ignored, unless the icon refers some theme graphics. For icons coming from the |
139 theme this flag can be left unset because they will still be colorized properly |
139 theme this flag can be left unset because they will still be colorized properly |
140 if the logical icon name indicates that the icon is a mono icon. Therefore this |
140 if the logical icon name indicates that the icon is a mono icon. Therefore this |
141 flag is only relevant for icons loaded from regular files. |
141 flag is only relevant for icons loaded from regular files. |
|
142 |
|
143 \b NonThemeable \b (0x10) This flag indicates that the icon is not themeable and thus |
|
144 there is no need to handle theme and layout direction changes for this icon. |
|
145 This is merely an optimization flag and must be set directly after creating the |
|
146 HbIcon instance (before the first paint of the icon) to have any performance |
|
147 benefits. |
|
148 |
142 */ |
149 */ |
143 |
150 |
144 /*! |
151 /*! |
145 \enum HbIcon::MirroringMode |
152 \enum HbIcon::MirroringMode |
146 |
153 |
375 * compatibility reasons if a QIcon instance needs to be passed as a parameter |
382 * compatibility reasons if a QIcon instance needs to be passed as a parameter |
376 * to a method taking a HbIcon parameter. |
383 * to a method taking a HbIcon parameter. |
377 * \note If this constructor is used, there are the following limitations in the HbIcon methods. |
384 * \note If this constructor is used, there are the following limitations in the HbIcon methods. |
378 * - HbIcon::defaultSize() always returns QSizeF(). |
385 * - HbIcon::defaultSize() always returns QSizeF(). |
379 * - HbIcon::paint() ignores the parameter aspectRatioMode and converts the given QRectF to QRect. |
386 * - HbIcon::paint() ignores the parameter aspectRatioMode and converts the given QRectF to QRect. |
|
387 * - HbIcon::iconName() returns empty string by default. |
|
388 * - HbIcon::pixmap() returns null pixmap. |
|
389 * - Colorization and mirroring support are not available. |
380 * This method should only be used if absolute necessary, as this is not ideal for hardware accelerated environment. |
390 * This method should only be used if absolute necessary, as this is not ideal for hardware accelerated environment. |
381 */ |
391 */ |
382 HbIcon::HbIcon( const QIcon &icon ) |
392 HbIcon::HbIcon( const QIcon &icon ) |
383 { |
393 { |
384 d = new HbIconPrivate(icon); |
394 d = new HbIconPrivate(icon); |