From e5576f03d4b8728cfc182ee8802a39905f630db8 Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Fri, 5 Jul 2019 16:31:01 -0400 Subject: [PATCH] Fix additional Qt version issue --- src/notifications/ManagerLinux.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/notifications/ManagerLinux.cpp b/src/notifications/ManagerLinux.cpp index 1d9f97d9..1914f61c 100644 --- a/src/notifications/ManagerLinux.cpp +++ b/src/notifications/ManagerLinux.cpp @@ -142,7 +142,11 @@ operator<<(QDBusArgument &arg, const QImage &image) int channels = i.isGrayscale() ? 1 : (i.hasAlphaChannel() ? 4 : 3); arg << i.depth() / channels; arg << channels; +#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0) + arg << QByteArray(reinterpret_cast(i.bits()), i.byteCount()); +#else arg << QByteArray(reinterpret_cast(i.bits()), i.sizeInBytes()); +#endif arg.endStructure(); return arg; }