ui/uiengine/model/mediamodel/src/glxmediamodel.cpp
changeset 61 743eb0b9959e
parent 55 fb37077c270f
child 67 199e6e1e0b54
--- a/ui/uiengine/model/mediamodel/src/glxmediamodel.cpp	Wed Aug 18 09:48:53 2010 +0300
+++ b/ui/uiengine/model/mediamodel/src/glxmediamodel.cpp	Thu Sep 02 20:26:45 2010 +0300
@@ -44,6 +44,7 @@
 	qDebug("GlxMediaModel::GlxMediaModel");
 	
 	thumbnailPopulatedFlag = modelParm.collection() == KGlxCollectionPluginAllImplementationUid ? false : true;
+	mPaintPage = modelParm.collection() == KGlxCollectionPluginAllImplementationUid ? true : false;
 	mMLWrapper = new GlxMLWrapper(modelParm.collection(),0,EGlxFilterImage);
 	mMLWrapper->setContextMode( modelParm.contextMode() );
 	mContextMode = modelParm.contextMode( ) ; 
@@ -199,6 +200,10 @@
         return QVariant();
     }
     
+    if (role == GlxPaintPageFlag) {
+       return mPaintPage;
+    }
+    
     if ( role == GlxDefaultImage ) {
         if(!m_DefaultIcon->isNull()) {
             // this image Creation is Slow.