summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-05-03 15:32:00 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-04 09:40:40 +0200
commit7d6ea5756e4b283fc74cd05cb5d8fbad6ba86738 (patch)
treeb54205556106876f17d4449026334989aacecce3 /tools
parentd0c01c581a69649d189a4febea90be050100322f (diff)
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.cpp4
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));