File 0001-Fix-compilation-error-with-Qt-5.9.patch of Package kwin5
From 20eae48e924d84eb83aaf26d68313a612ca001cb Mon Sep 17 00:00:00 2001
From: Vlad Zagorodniy <vladzzag@gmail.com>
Date: Wed, 11 Sep 2019 20:46:04 +0300
Subject: [PATCH 1/2] 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 d6e121a8d..ca4a6ed79 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();
}
--
2.22.0