aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetter Reinholdtsen <[email protected]>2013-02-09 19:18:53 +0100
committerWladimir J. van der Laan <[email protected]>2013-02-09 19:18:53 +0100
commit17121ec4fed58ec4a6f74c5ab4b4f9229619bd9a (patch)
treed6bc938f0814f008ec2cea7a31a7f26d26e46ec0
parentMerge commit 'd38c6488d067c2e88726e2ca99bc76fd67dab49b' (diff)
downloaddiscoin-17121ec4fed58ec4a6f74c5ab4b4f9229619bd9a.tar.xz
discoin-17121ec4fed58ec4a6f74c5ab4b4f9229619bd9a.zip
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.
-rw-r--r--src/qt/notificator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/notificator.cpp b/src/qt/notificator.cpp
index 8028190b8..628dca159 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<const uint32_t*>(tmp.constBits());
+ const uint32_t *data = reinterpret_cast<const uint32_t*>(tmp.bits());
unsigned int num_pixels = width * height;
image.resize(num_pixels * BYTES_PER_PIXEL);