--- a/ui/uiengine/model/mediamodel/src/glxmediamodel.cpp Fri Apr 16 14:58:46 2010 +0300
+++ b/ui/uiengine/model/mediamodel/src/glxmediamodel.cpp Mon May 03 12:31:32 2010 +0300
@@ -152,6 +152,10 @@
//todo refactor this whole function ... too many return statements are not good
QVariant GlxMediaModel::data(const QModelIndex &index, int role) const
{
+ if ( role == GlxSubStateRole ) {
+ return mSubState;
+ }
+
HbIcon* itemIcon = NULL;
int itemIndex = index.row();
qDebug("GlxMediaModel::data buffer concept index %d role %d", index.row(), role);
@@ -232,8 +236,8 @@
return (mMLWrapper->retrieveItemFrameCount(itemIndex));
}
- if ( role == GlxSubStateRole ) {
- return mSubState;
+ if (role == GlxHdmiBitmap) {
+ return mMLWrapper->RetrieveBitmap(itemIndex);
}
return QVariant();