equal
deleted
inserted
replaced
38 \brief HbIconImplCreator class is a simple utility class to serve as a factory |
38 \brief HbIconImplCreator class is a simple utility class to serve as a factory |
39 \ for different types of iconImpl, based on iconinfo's type. |
39 \ for different types of iconImpl, based on iconinfo's type. |
40 |
40 |
41 \internal |
41 \internal |
42 */ |
42 */ |
|
43 |
43 HbIconImpl *HbIconImplCreator::createIconImpl(HbSharedIconInfo &iconImplInfo, |
44 HbIconImpl *HbIconImplCreator::createIconImpl(HbSharedIconInfo &iconImplInfo, |
44 HbIconLoadingParams ¶ms) |
45 HbIconLoadingParams ¶ms) |
45 { |
46 { |
46 HbIconImpl *iconImpl = 0; |
47 HbIconImpl *iconImpl = 0; |
47 switch (iconImplInfo.type) { |
48 switch (iconImplInfo.type) { |
48 case NVG: |
49 case NVG: |
49 #ifdef HB_NVG_CS_ICON |
50 #ifdef HB_NVG_CS_ICON |
84 iconImpl->setColor(params.color); |
85 iconImpl->setColor(params.color); |
85 } |
86 } |
86 |
87 |
87 return iconImpl; |
88 return iconImpl; |
88 } |
89 } |
|
90 |
|
91 HbIconImpl *HbIconImplCreator::createIconImpl(const QPixmap &pixmap, |
|
92 HbIconLoadingParams ¶ms) |
|
93 { |
|
94 HbIconImpl *iconImpl = new HbPixmapIconImpl(pixmap, |
|
95 params.iconFileName, |
|
96 params.size, |
|
97 params.aspectRatioMode, |
|
98 params.mode, |
|
99 (params.mirrored && !params.mirroredIconFound)); |
|
100 if (iconImpl && params.color.isValid()) { |
|
101 iconImpl->setColor(params.color); |
|
102 } |
|
103 return iconImpl; |
|
104 } |