diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-05-03 15:32:00 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-04 09:40:40 +0200 |
commit | 7d6ea5756e4b283fc74cd05cb5d8fbad6ba86738 (patch) | |
tree | b54205556106876f17d4449026334989aacecce3 /tools | |
parent | d0c01c581a69649d189a4febea90be050100322f (diff) | |
download | qtquick1-7d6ea5756e4b283fc74cd05cb5d8fbad6ba86738.tar.gz |
QImage::numBytes() is deprecated in favour of QImage::byteCount()
Change-Id: Iff87ba1a658683bcef3a38353602a733f18a1340
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qml/qmlruntime.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qml/qmlruntime.cpp b/tools/qml/qmlruntime.cpp index 52cf2d05..14e49ecb 100644 --- a/tools/qml/qmlruntime.cpp +++ b/tools/qml/qmlruntime.cpp @@ -1417,9 +1417,9 @@ void QDeclarativeViewer::recordFrame() if (frame_fmt == QLatin1String(".gif")) { // ffmpeg can't do 32bpp with gif QImage rgb24 = frame.convertToFormat(QImage::Format_RGB888); - frame_stream->write((char*)rgb24.bits(),rgb24.numBytes()); + frame_stream->write((char*)rgb24.bits(),rgb24.byteCount()); } else { - frame_stream->write((char*)frame.bits(),frame.numBytes()); + frame_stream->write((char*)frame.bits(),frame.byteCount()); } } else { frames.append(new QImage(frame)); |