Fix compilation error with Qt 5.9
QImage::sizeInBytes() was introduced in Qt 5.10.
This commit is contained in:
parent
46c76aecc9
commit
444b88aef4
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ static QSize pickWindowSize(const QImage &image)
|
|||
const uint32_t bytesPerPixel = image.depth() >> 3;
|
||||
const uint32_t bytesPerLine = image.bytesPerLine();
|
||||
|
||||
if (image.sizeInBytes() <= maximumDataSize) {
|
||||
if (image.byteCount() <= maximumDataSize) {
|
||||
return image.size();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue