taskswitcherapp/tsdevicedialogplugin/src/tsentrymodelitem.cpp
changeset 55 03646e8da489
parent 51 4785f57bf3d4
equal deleted inserted replaced
51:4785f57bf3d4 55:03646e8da489
    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                 }