Fix compilation error with Qt 5.9

QImage::sizeInBytes() was introduced in Qt 5.10.
This commit is contained in:
Vlad Zagorodniy 2019-09-11 20:46:04 +03:00
parent 46c76aecc9
commit 444b88aef4

View file

@ -107,7 +107,7 @@ static QSize pickWindowSize(const QImage &image)
const uint32_t bytesPerPixel = image.depth() >> 3; const uint32_t bytesPerPixel = image.depth() >> 3;
const uint32_t bytesPerLine = image.bytesPerLine(); const uint32_t bytesPerLine = image.bytesPerLine();
if (image.sizeInBytes() <= maximumDataSize) { if (image.byteCount() <= maximumDataSize) {
return image.size(); return image.size();
} }