homescreenapp/serviceproviders/hsmenuserviceprovider/src/hsmenuitemmodel.cpp
changeset 62 341166945d65
parent 35 f9ce957a272c
child 63 52b0f64eeb51
child 77 4b195f3bea29
--- a/homescreenapp/serviceproviders/hsmenuserviceprovider/src/hsmenuitemmodel.cpp	Thu Jun 24 13:11:40 2010 +0100
+++ b/homescreenapp/serviceproviders/hsmenuserviceprovider/src/hsmenuitemmodel.cpp	Fri Jun 25 19:19:22 2010 +0300
@@ -15,6 +15,8 @@
  *
  */
 
+#include <hbnamespace.h>
+
 #include "hsmenuitemmodel.h"
 #include "hsmenuserviceutils.h"
 
@@ -72,6 +74,13 @@
         icons << HbIcon(newIconId());
 
         variant = QVariant(icons);
+    } else if (role == Hb::IndexFeedbackRole){
+        QVariant display = CaItemModel::data(index, Qt::DisplayRole);
+        if (display.type() == QVariant::String){
+            variant = display;
+        } else {
+            variant = QVariant(display.toList().at(0));
+        }
     } else {
         variant = CaItemModel::data(index, role);
     }