REMOVE old QT<= 5.14 code
Ubuntu 22.04 use qt 1.15.3. In the code is still used qt code <5.10. A cleanup was done by removing qT code version used in ubuntu 18.04.
This commit is contained in:
@@ -530,11 +530,8 @@ void BitmapFactoryInst::convert(const QImage& p, SoSFImage& img) const
|
||||
size[0] = p.width();
|
||||
size[1] = p.height();
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
|
||||
int buffersize = static_cast<int>(p.sizeInBytes());
|
||||
#else
|
||||
int buffersize = p.byteCount();
|
||||
#endif
|
||||
|
||||
int numcomponents = 0;
|
||||
QVector<QRgb> table = p.colorTable();
|
||||
if (!table.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user