Commit d7a9881d authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: make compile dumpers work on Qt 4.5



Task-number: QTCREATORBUG-6616
Change-Id: Id01238d4ec767a0e9f8d05cedff4850106b6e318
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent c2e3d877
......@@ -1677,7 +1677,7 @@ static void qDumpQImage(QDumper &d)
static void qDumpQImageData(QDumper &d)
{
const QImage &im = *reinterpret_cast<const QImage *>(d.data);
const QByteArray ba(QByteArray::fromRawData((const char*)im.bits(), im.byteCount()));
const QByteArray ba(QByteArray::fromRawData((const char*)im.bits(), im.numBytes()));
d.putItem("type", NS"QImageData");
d.putItem("numchild", "0");
#if 1
......
......@@ -35,7 +35,6 @@
#include <QtCore/QObject>
#include <QtCore/QPointer>
#include <QtCore/QSharedPointer>
#ifndef QT_BOOTSTRAPPED
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment