From 7556af0cfe6b203c7a69bc018d8818ad9105114b Mon Sep 17 00:00:00 2001 From: Noah Davis Date: Sun, 29 Dec 2019 03:25:20 -0500 Subject: [PATCH] Fix QImage::byteCount() deprecation warning by switching to sizeInBytes() --- kstyle/breezeshadowhelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kstyle/breezeshadowhelper.cpp b/kstyle/breezeshadowhelper.cpp index 19249011..dbaa1abf 100644 --- a/kstyle/breezeshadowhelper.cpp +++ b/kstyle/breezeshadowhelper.cpp @@ -457,7 +457,7 @@ namespace Breeze // create image from QPixmap and assign to pixmap QImage image( source.toImage() ); - xcb_put_image( Helper::connection(), XCB_IMAGE_FORMAT_Z_PIXMAP, pixmap, _gc, image.width(), image.height(), 0, 0, 0, 32, image.byteCount(), image.constBits()); + xcb_put_image( Helper::connection(), XCB_IMAGE_FORMAT_Z_PIXMAP, pixmap, _gc, image.width(), image.height(), 0, 0, 0, 32, image.sizeInBytes(), image.constBits()); return pixmap;