diff -r c3690ec91ef8 -r 923ff622b8b9 src/hbservers/hbthemeserver/hbpixmapiconprocessor_p.h --- a/src/hbservers/hbthemeserver/hbpixmapiconprocessor_p.h Wed Jun 23 18:33:25 2010 +0300 +++ b/src/hbservers/hbthemeserver/hbpixmapiconprocessor_p.h Tue Jul 06 14:36:53 2010 +0300 @@ -29,9 +29,14 @@ #include "hbiconprocessor_p.h" #include -#if defined (Q_OS_SYMBIAN) +#if defined (HB_NVG_CS_ICON) #include -#endif //Q_OS_SYMBIAN + +// Note: Cases of the following two directory names intentionally differ to +// match the cases of the corresponding directories in Symbian 4. +#include +#include +#endif //HB_NVG_CS_ICON QT_BEGIN_NAMESPACE class QSvgRenderer; @@ -41,13 +46,13 @@ class HbThemeServerSymbian; -#if defined (Q_OS_SYMBIAN) +#if defined (HB_NVG_CS_ICON) struct HbNvgAspectRatioSettings { TNvgAlignStatusType nvgAlignStatusAndAspectRatio; TNvgMeetOrSliceType type; }; -#endif //Q_OS_SYMBIAN +#endif //HB_NVG_CS_ICON class HbPixmapIconProcessor : public HbIconProcessor { @@ -71,11 +76,12 @@ bool renderPicToPixmap(const QString& iconPath); bool renderOtherFormatsToPixmap(const QString& iconPath); -#if defined (Q_OS_SYMBIAN) +#if defined (HB_NVG_CS_ICON) + VGIColorBufferFormat mapToVgiDisplayFormat(QImage::Format imageFormat) const; bool renderNvgToPixmap(const QString& iconPath); HbNvgAspectRatioSettings mapKeyAspectRatioToNvgAspectRatio( Qt::AspectRatioMode aspectRatio) const; -#endif //Q_OS_SYMBIAN +#endif //HB_NVG_CS_ICON private: QPixmap pixmap; };