diff options
Diffstat (limited to 'src/widgets/platforms/mac/qpaintdevice_mac.cpp')
-rw-r--r-- | src/widgets/platforms/mac/qpaintdevice_mac.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/platforms/mac/qpaintdevice_mac.cpp b/src/widgets/platforms/mac/qpaintdevice_mac.cpp index d29047bf50..50bd4b8490 100644 --- a/src/widgets/platforms/mac/qpaintdevice_mac.cpp +++ b/src/widgets/platforms/mac/qpaintdevice_mac.cpp @@ -121,16 +121,16 @@ Q_WIDGETS_EXPORT CGContextRef qt_mac_cg_context(const QPaintDevice *pdev) CGContextRef ret = 0; // It would make sense to put this into a mac #ifdef'ed - // virtual function in the QPixmapData at some point - if (pm->data->classId() == QPixmapData::MacClass) { - const QMacPixmapData *pmData = static_cast<const QMacPixmapData*>(pm->data.data()); + // virtual function in the QPlatformPixmap at some point + if (pm->data->classId() == QPlatformPixmap::MacClass) { + const QMacPlatformPixmap *pmData = static_cast<const QMacPlatformPixmap*>(pm->data.data()); ret = CGBitmapContextCreate(pmData->pixels, pmData->w, pmData->h, 8, pmData->bytesPerRow, colorspace, flags); if(!ret) qWarning("QPaintDevice: Unable to create context for pixmap (%d/%d/%d)", pmData->w, pmData->h, (pmData->bytesPerRow * pmData->h)); - } else if (pm->data->classId() == QPixmapData::RasterClass) { + } else if (pm->data->classId() == QPlatformPixmap::RasterClass) { QImage *image = pm->data->buffer(); ret = CGBitmapContextCreate(image->bits(), image->width(), image->height(), 8, image->bytesPerLine(), colorspace, flags); |