From f3e852c042250e3744ec67ffd972a98307ed26b3 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 8 Jul 2019 22:25:56 +0200 Subject: [PATCH] Replace QImage::byteCount() with sizeInBytes() --- src/widgets/osd_x11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/osd_x11.cpp b/src/widgets/osd_x11.cpp index e4f8462eb..92cf876ab 100644 --- a/src/widgets/osd_x11.cpp +++ b/src/widgets/osd_x11.cpp @@ -91,7 +91,7 @@ QDBusArgument &operator<<(QDBusArgument &arg, const QImage &image) { int channels = i.isGrayscale() ? 1 : (i.hasAlphaChannel() ? 4 : 3); arg << i.depth() / channels; arg << channels; - arg << QByteArray(reinterpret_cast(i.bits()), i.byteCount()); + arg << QByteArray(reinterpret_cast(i.bits()), i.sizeInBytes()); arg.endStructure(); return arg;