diff -r 27f2d7aec52a -r 0a8e959402e5 ui/uiengine/model/listmodel/src/glxalbummodel.cpp --- a/ui/uiengine/model/listmodel/src/glxalbummodel.cpp Wed Oct 06 14:49:39 2010 +0530 +++ b/ui/uiengine/model/listmodel/src/glxalbummodel.cpp Thu Oct 14 17:54:23 2010 +0530 @@ -25,6 +25,8 @@ #include "glxicondefs.h" //Contains the icon names/Ids +#define FAV_ROW_INDEX 1 + GlxAlbumModel::GlxAlbumModel(GlxModelParm & modelParm):mContextMode(GlxContextInvalid) { qDebug("GlxAlbumModel::GlxAlbumModel()"); @@ -36,7 +38,8 @@ mContextMode = GlxContextSelectionList; //todo get this Default icon from some generic path and not directly. - mDefaultIcon = new HbIcon(GLXICON_DEFAULT); + mDefaultIcon = new HbIcon(GLXICON_DEFAULT_ALBUMLIST); + mDefaultfavIcon = new HbIcon(GLXICON_DEFAULT_FAVOURITE); m_CorruptIcon = new HbIcon( GLXICON_CORRUPT ); int err = connect(mMLWrapper, SIGNAL(updateItem(int, GlxTBContextType)), this, SLOT(itemUpdated1(int, GlxTBContextType))); @@ -58,6 +61,8 @@ qDebug("GlxAlbumModel::~GlxAlbumModel()"); delete mDefaultIcon; mDefaultIcon = NULL; + delete mDefaultfavIcon; + mDefaultfavIcon = NULL; delete m_CorruptIcon; int err = disconnect(mMLWrapper, SIGNAL(updateItem(int, GlxTBContextType)), this, SLOT(itemUpdated1(int, GlxTBContextType))); err = disconnect(mMLWrapper, SIGNAL(insertItems(int, int)), this, SLOT(itemsAdded(int, int))); @@ -156,6 +161,9 @@ if ( mMLWrapper->isCorruptedImage( index.row() ) ) { return m_CorruptIcon ; } + if( index.row() == FAV_ROW_INDEX ){ + return mDefaultfavIcon; + } return mDefaultIcon ; }