From 17121ec4fed58ec4a6f74c5ab4b4f9229619bd9a Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Sat, 9 Feb 2013 19:18:53 +0100 Subject: Use QImage.bits instead of QImage.constBits to ease backporting Image.constBits was introduced in Qt 4.7. Should be ok here to use QImage.bits which allows linking against the Qt in Squeeze. --- src/qt/notificator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qt/notificator.cpp') diff --git a/src/qt/notificator.cpp b/src/qt/notificator.cpp index 8028190b82..628dca1591 100644 --- a/src/qt/notificator.cpp +++ b/src/qt/notificator.cpp @@ -113,7 +113,7 @@ FreedesktopImage::FreedesktopImage(const QImage &img): { // Convert 00xAARRGGBB to RGBA bytewise (endian-independent) format QImage tmp = img.convertToFormat(QImage::Format_ARGB32); - const uint32_t *data = reinterpret_cast(tmp.constBits()); + const uint32_t *data = reinterpret_cast(tmp.bits()); unsigned int num_pixels = width * height; image.resize(num_pixels * BYTES_PER_PIXEL); -- cgit v1.2.3