From e1f3fe1be404b35ca22ff2e7510ff4afecd5c85a Mon Sep 17 00:00:00 2001 From: maurerpe Date: Sun, 21 Feb 2016 13:25:13 -0500 Subject: [PATCH] Change numBytes() to byteCount() numBytes() is obsolete in Qt 4.8 and removed in Qt5. byteCount() is a drop in replacement that works in 4.8 and 5. --- src/Gui/BitmapFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/BitmapFactory.cpp b/src/Gui/BitmapFactory.cpp index da7a9a9f4..9dac5cd12 100644 --- a/src/Gui/BitmapFactory.cpp +++ b/src/Gui/BitmapFactory.cpp @@ -589,7 +589,7 @@ void BitmapFactoryInst::convert(const QImage& p, SoSFImage& img) const size[0] = p.width(); size[1] = p.height(); - int buffersize = p.numBytes(); + int buffersize = p.byteCount(); int numcomponents = 0; QVector table = p.colorTable(); if (!table.isEmpty()) {