From 444b88aef4d99686cd19886bf89ff1228cf7ca18 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Wed, 11 Sep 2019 20:46:04 +0300 Subject: [PATCH] Fix compilation error with Qt 5.9 QImage::sizeInBytes() was introduced in Qt 5.10. --- effects/screenshot/screenshot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/screenshot/screenshot.cpp b/effects/screenshot/screenshot.cpp index d6e121a8da..ca4a6ed798 100644 --- a/effects/screenshot/screenshot.cpp +++ b/effects/screenshot/screenshot.cpp @@ -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(); }