mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-15 10:08:08 +01:00
Replace QImage::byteCount() with sizeInBytes()
This commit is contained in:
parent
5e2a07d144
commit
f3e852c042
@ -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<const char*>(i.bits()), i.byteCount());
|
||||
arg << QByteArray(reinterpret_cast<const char*>(i.bits()), i.sizeInBytes());
|
||||
arg.endStructure();
|
||||
return arg;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user