equal
deleted
inserted
replaced
25 #include <cadefs.h> |
25 #include <cadefs.h> |
26 |
26 |
27 /*! |
27 /*! |
28 * Create an icon. |
28 * Create an icon. |
29 * \param entry a CaEntry instance. |
29 * \param entry a CaEntry instance. |
30 * \param size a size of the icon |
30 * \param size Currently ignored. |
31 * \retval a HbIcon instance. |
31 * \retval a HbIcon instance. |
32 */ |
32 */ |
33 HbIcon CaObjectAdapter::makeIcon(const CaEntry &entry, const QSize &size) |
33 HbIcon CaObjectAdapter::makeIcon(const CaEntry &entry, const QSizeF &size) |
34 { |
34 { |
|
35 Q_UNUSED(size); |
35 HbIcon icon; |
36 HbIcon icon; |
36 QString filename(entry.iconDescription().filename()); |
37 QString filename(entry.iconDescription().filename()); |
37 if (!filename.isEmpty()) { |
38 if (!filename.isEmpty()) { |
38 icon = HbIcon(filename); |
39 icon = HbIcon(filename); |
39 //icon.addBadge( Qt::AlignTop | Qt::AlignRight, HbIcon("qtg_small_hs_widget")); |
40 //icon.addBadge( Qt::AlignTop | Qt::AlignRight, HbIcon("qtg_small_hs_widget")); |