mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Fix Qt 5.9 build
This commit is contained in:
parent
5fb9977acf
commit
ca039a9749
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user