ui/views/detailsview/src/glxdetailscustomwidgets.cpp
changeset 24 99ad1390cd33
parent 23 74c9f037fd5d
child 26 c499df2dbb33
equal deleted inserted replaced
23:74c9f037fd5d 24:99ad1390cd33
    96             return 0;
    96             return 0;
    97 
    97 
    98         }
    98         }
    99     }
    99     }
   100 
   100 
       
   101 bool GlxDetailsCustomWidgets::canSetModelIndex(const QModelIndex &index) const
       
   102 {
       
   103     HbDataFormModelItem::DataItemType itemType =
       
   104     static_cast<HbDataFormModelItem::DataItemType>(
       
   105             index.data(HbDataFormModelItem::ItemTypeRole).toInt());
   101 
   106 
   102 void  GlxDetailsCustomWidgets::SetImageName(const QString &label)
   107     if(itemType >= ImageNameItem && 
   103     {
   108             itemType <= CommentsItem )
   104     qDebug("GlxDetailsCustomWidgets::SetImageName:mLabel ");
   109         {
   105     mLabel->setPlainText(label);
   110         return true;
   106     }
   111         }
       
   112     return false;
       
   113 }
   107 
   114 
   108 //EOF
   115 //EOF