diff -r 4fa04caf0f43 -r 1cdcc61142d2 ganeswidgets/tsrc/fute/HgWidgetTest/src/hgwidgettestdatamodel.cpp --- a/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgwidgettestdatamodel.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgwidgettestdatamodel.cpp Thu Jun 24 12:59:29 2010 +0300 @@ -19,7 +19,7 @@ #include #include -#include +#include #include #include @@ -57,12 +57,12 @@ mImageType(ImageTypeNone), // mDefaultIcon((":/images/default.svg")), mUseLowResImages(false), + mBufferManager(0), + mSilentDataFetch(false), mWrapper( new ThumbnailManager() ), mThumbnailRequestPending(false), mThumbnailRequestIndex(-1), - mThumbnailRequestID(-1), - mBufferManager(0), - mSilentDataFetch(false) + mThumbnailRequestID(-1) { FUNC_LOG; mWrapper->setQualityPreference( ThumbnailManager::OptimizeForPerformance ); @@ -596,6 +596,8 @@ void HgWidgetTestDataModel::thumbnailReady( QPixmap pixmap, void* data, int /*id*/, int error ) { + Q_UNUSED(data); + if (!error && !pixmap.isNull() ){ // int idx = reinterpret_cast(data); if (mImageType == ImageTypeQPixmap || mImageType == ImageTypeHbIcon)