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:
parent
31fd2d1762
commit
e1f3fe1be4
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user