diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mydataprovider.cpp --- a/hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mydataprovider.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mydataprovider.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -13,16 +13,13 @@ * * Description: * -* Version : %version: 5 % +* Version : %version: 7 % */ #include #include "hglogger.h" -#include +#include #include "mydataprovider.h" -//#include "x:\sf\mw\qt\src\openvg\qpixmapdata_vg_p.h" -//typedef VGImage (*pfnVgCreateEGLImageTargetKHR)(VGeglImageKHR); - const int KItemIdRole = Qt::UserRole+1; const int KThumbnailsPriority = EPriorityLess; //standard priority @@ -30,7 +27,7 @@ MyDataProvider::MyDataProvider(QObject *parent) : HgDataProviderModel(parent), -mDefaultIcon(new HbIcon(QIcon(QPixmap(":/icons/default.png")))), +mDefaultIcon(QIcon(QPixmap(":/icons/default.png"))), mScheduler(new CActiveSchedulerWait()), mWrapper( new ThumbnailManager() ), mThumbnailRequestPending(false), @@ -42,6 +39,7 @@ { // TX_ENTRY Q_UNUSED(parent); + mWrapper->setThumbnailSize( mThumbnailsize ); mWrapper->setQualityPreference( ThumbnailManager::OptimizeForPerformance ); @@ -54,7 +52,6 @@ MyDataProvider::~MyDataProvider() { // TX_ENTRY - delete mDefaultIcon; delete mWrapper; delete mScheduler; // TX_EXIT @@ -165,7 +162,7 @@ QVariant MyDataProvider::defaultIcon() const { - return *mDefaultIcon; + return mDefaultIcon; } void MyDataProvider::HandleSessionOpened(CMdESession& aSession, TInt aError)