RagePhoto: Qt < 5.10 build fix
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6befe33596
commit
0c6c6ca9fb
1 changed files with 10 additions and 0 deletions
|
@ -369,7 +369,12 @@ bool RagePhoto::load()
|
||||||
return load();
|
return load();
|
||||||
}
|
}
|
||||||
else if (format == static_cast<quint32>(ExportFormat::G5E1P)) {
|
else if (format == static_cast<quint32>(ExportFormat::G5E1P)) {
|
||||||
|
#if QT_VERSION >= 0x050A00
|
||||||
size = dataBuffer.skip(1);
|
size = dataBuffer.skip(1);
|
||||||
|
#else
|
||||||
|
QByteArray skipData = dataBuffer.read(1);
|
||||||
|
size = skipData.size();
|
||||||
|
#endif
|
||||||
if (size != 1)
|
if (size != 1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -379,7 +384,12 @@ bool RagePhoto::load()
|
||||||
return false;
|
return false;
|
||||||
int i_length = QByteArray::number((int)length[0], 16).toInt() + 6;
|
int i_length = QByteArray::number((int)length[0], 16).toInt() + 6;
|
||||||
|
|
||||||
|
#if QT_VERSION >= 0x050A00
|
||||||
size = dataBuffer.skip(i_length);
|
size = dataBuffer.skip(i_length);
|
||||||
|
#else
|
||||||
|
skipData = dataBuffer.read(i_length);
|
||||||
|
size = skipData.size();
|
||||||
|
#endif
|
||||||
if (size != i_length)
|
if (size != i_length)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue