Changeset 846 for trunk/src/gui/image/qpixmapcache_p.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/image/qpixmapcache_p.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 82 82 QPixmapCacheEntry(const QPixmapCache::Key &key, const QPixmap &pix) : QPixmap(pix), key(key) 83 83 { 84 if (data && data->classId() == QPixmapData::RasterClass) { 85 QRasterPixmapData *d = static_cast<QRasterPixmapData*>(data.data()); 84 QPixmapData *pd = pixmapData(); 85 if (pd && pd->classId() == QPixmapData::RasterClass) { 86 QRasterPixmapData *d = static_cast<QRasterPixmapData*>(pd); 86 87 if (!d->image.isNull() && d->image.d->paintEngine 87 88 && !d->image.d->paintEngine->isActive()) … … 96 97 }; 97 98 99 inline bool qIsDetached(QPixmapCacheEntry &t) { return t.isDetached(); } 100 98 101 QT_END_NAMESPACE 99 102
Note:
See TracChangeset
for help on using the changeset viewer.