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.
This commit is contained in:
maurerpe 2016-02-21 13:25:13 -05:00 committed by wmayer
parent 31fd2d1762
commit e1f3fe1be4

View File

@ -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<QRgb> table = p.colorTable();
if (!table.isEmpty()) {