ui/uiengine/model/mediamodel/src/glxmediamodel.cpp
changeset 61 743eb0b9959e
parent 55 fb37077c270f
child 67 199e6e1e0b54
equal deleted inserted replaced
55:fb37077c270f 61:743eb0b9959e
    42 GlxMediaModel::GlxMediaModel(GlxModelParm & modelParm)
    42 GlxMediaModel::GlxMediaModel(GlxModelParm & modelParm)
    43 {
    43 {
    44 	qDebug("GlxMediaModel::GlxMediaModel");
    44 	qDebug("GlxMediaModel::GlxMediaModel");
    45 	
    45 	
    46 	thumbnailPopulatedFlag = modelParm.collection() == KGlxCollectionPluginAllImplementationUid ? false : true;
    46 	thumbnailPopulatedFlag = modelParm.collection() == KGlxCollectionPluginAllImplementationUid ? false : true;
       
    47 	mPaintPage = modelParm.collection() == KGlxCollectionPluginAllImplementationUid ? true : false;
    47 	mMLWrapper = new GlxMLWrapper(modelParm.collection(),0,EGlxFilterImage);
    48 	mMLWrapper = new GlxMLWrapper(modelParm.collection(),0,EGlxFilterImage);
    48 	mMLWrapper->setContextMode( modelParm.contextMode() );
    49 	mMLWrapper->setContextMode( modelParm.contextMode() );
    49 	mContextMode = modelParm.contextMode( ) ; 
    50 	mContextMode = modelParm.contextMode( ) ; 
    50 	mDRMUtilityWrapper = new GlxDRMUtilityWrapper();
    51 	mDRMUtilityWrapper = new GlxDRMUtilityWrapper();
    51 	
    52 	
   195         return TRUE;
   196         return TRUE;
   196     }
   197     }
   197     
   198     
   198     if ( role == Qt::DisplayRole ) {
   199     if ( role == Qt::DisplayRole ) {
   199         return QVariant();
   200         return QVariant();
       
   201     }
       
   202     
       
   203     if (role == GlxPaintPageFlag) {
       
   204        return mPaintPage;
   200     }
   205     }
   201     
   206     
   202     if ( role == GlxDefaultImage ) {
   207     if ( role == GlxDefaultImage ) {
   203         if(!m_DefaultIcon->isNull()) {
   208         if(!m_DefaultIcon->isNull()) {
   204             // this image Creation is Slow. 
   209             // this image Creation is Slow.