diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-07-12 09:49:12 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-07-18 10:50:12 +0200 |
commit | bc0a0281d535079745ed1544a063571b86ca718e (patch) | |
tree | 8994e4f02518ebb4acc6d4672c942aa276752295 /src/widgets/itemviews/qitemdelegate.cpp | |
parent | a81093b9150b2f1727de6e9e77b8bdddb1c909ee (diff) |
Get rid of some obsolete functions in QImage / QPixmap / QPixmapData.
Change-Id: I0d2412c9196475b926a17de9fcc3281f6625fae0
Reviewed-on: http://codereview.qt.nokia.com/1733
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/widgets/itemviews/qitemdelegate.cpp')
-rw-r--r-- | src/widgets/itemviews/qitemdelegate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/itemviews/qitemdelegate.cpp b/src/widgets/itemviews/qitemdelegate.cpp index c1f957b638..a2da62ac83 100644 --- a/src/widgets/itemviews/qitemdelegate.cpp +++ b/src/widgets/itemviews/qitemdelegate.cpp @@ -1044,7 +1044,7 @@ static QString qPixmapSerial(quint64 i, bool enabled) */ QPixmap *QItemDelegate::selected(const QPixmap &pixmap, const QPalette &palette, bool enabled) const { - QString key = qPixmapSerial(qt_pixmap_id(pixmap), enabled); + QString key = qPixmapSerial(pixmap.cacheKey(), enabled); QPixmap *pm = QPixmapCache::find(key); if (!pm) { QImage img = pixmap.toImage().convertToFormat(QImage::Format_ARGB32_Premultiplied); |