equal
deleted
inserted
replaced
54 switch (role) { |
54 switch (role) { |
55 case Qt::DisplayRole: |
55 case Qt::DisplayRole: |
56 return QVariant(mEntry->name()); |
56 return QVariant(mEntry->name()); |
57 case Qt::DecorationRole: |
57 case Qt::DecorationRole: |
58 { |
58 { |
59 QPixmap icon = mEntry->icon(); |
59 QPixmap icon = mEntry->screenshot().isNull() ? |
|
60 mEntry->icon() : |
|
61 mEntry->screenshot(); |
60 if (icon.isNull()) { |
62 if (icon.isNull()) { |
61 return HbIcon("qtg_large_application"); |
63 return HbIcon("qtg_large_application"); |
62 } else { |
64 } else { |
63 return QVariant::fromValue<HbIcon>(HbIcon(icon)); |
65 return QVariant::fromValue<HbIcon>(HbIcon(icon)); |
64 } |
66 } |