Skip to content
Permalink
Browse files

Fix Qt 5.9 build

  • Loading branch information
nyalldawson committed Feb 7, 2020
1 parent 5fb9977 commit ca039a97493a8c34281bf63fdf04c7ff35972a7b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/native/linux/qgslinuxnative.cpp
@@ -222,7 +222,7 @@ QDBusArgument &operator<<( QDBusArgument &arg, const QImage &image )
arg << i.depth() / channels;
arg << channels;
#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)
arg << QByteArray( reinterpret_cast<const char *>( i.bits() ), i.numBytes() );
arg << QByteArray( reinterpret_cast<const char *>( i.bits() ), i.byteCount() );
#else
arg << QByteArray( reinterpret_cast<const char *>( i.bits() ), i.sizeInBytes() );
#endif

0 comments on commit ca039a9

Please sign in to comment.
You can’t perform that action at this time.