equal
deleted
inserted
replaced
1021 newModelIndex, stringList, Qt::DisplayRole); |
1021 newModelIndex, stringList, Qt::DisplayRole); |
1022 |
1022 |
1023 // Set the to-do done icon. |
1023 // Set the to-do done icon. |
1024 QList<QVariant> iconList; |
1024 QList<QVariant> iconList; |
1025 iconList.append(HbIcon("qtg_small_todo_done")); |
1025 iconList.append(HbIcon("qtg_small_todo_done")); |
1026 // To-do is already completed. No need to set alarm. |
1026 if (1 == entry.priority()) { |
1027 iconList.append(QVariant(QVariant::Invalid)); |
1027 // Set the High Priority icon if priority is high or else not. |
|
1028 iconList.append(HbIcon("qtg_small_priority_high")); |
|
1029 } else { |
|
1030 // To-do is already completed. No need to set alarm. |
|
1031 iconList.append(QVariant(QVariant::Invalid)); |
|
1032 } |
1028 |
1033 |
1029 // Set the icons. |
1034 // Set the icons. |
1030 mSourceModel->setData( |
1035 mSourceModel->setData( |
1031 newModelIndex, iconList, Qt::DecorationRole); |
1036 newModelIndex, iconList, Qt::DecorationRole); |
1032 |
1037 |