Fix Qt 5.9 build

This commit is contained in:
Nyall Dawson 2020-02-07 11:06:55 +10:00
parent 5fb9977acf
commit ca039a9749

View File

@ -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