Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/image/qpixmapcache_p.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    8282    QPixmapCacheEntry(const QPixmapCache::Key &key, const QPixmap &pix) : QPixmap(pix), key(key)
    8383    {
    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);
    8687            if (!d->image.isNull() && d->image.d->paintEngine
    8788                && !d->image.d->paintEngine->isActive())
     
    9697};
    9798
     99inline bool qIsDetached(QPixmapCacheEntry &t) { return t.isDetached(); }
     100
    98101QT_END_NAMESPACE
    99102
Note: See TracChangeset for help on using the changeset viewer.