Switching back to comment block

This commit is contained in:
Rob Emery 2024-10-10 08:54:36 +01:00
parent a2d430c95d
commit d91409bb73

View file

@ -10,7 +10,6 @@
#include <limits>
#include <QBuffer>
#include <QDBusArgument>
#include <QFile>
#include <QImage>
@ -356,15 +355,15 @@ bool DBusNotificationsListener::parseImageDataArgument(const QVariant &argument,
bool &hasAlpha,
QByteArray &imageData) const
{
return true;
// FIXME
if (!argument.canConvert<QDBusArgument>()) {
return false;
}
const QDBusArgument dbusArg = argument.value<QDBusArgument>();
dbusArg.beginStructure();
dbusArg >> width >> height >> rowStride >> hasAlpha >> bitsPerSample >> channels >> imageData;
dbusArg.endStructure();
// if (!argument.canConvert<QDBusArgument>()) {
// return false;
// }
// const QDBusArgument dbusArg = argument.value<QDBusArgument>();
// dbusArg.beginStructure();
// dbusArg >> width >> height >> rowStride >> hasAlpha >> bitsPerSample >> channels >> imageData;
// dbusArg.endStructure();
return true;
}
QSharedPointer<QIODevice> DBusNotificationsListener::iconForImageData(const QVariant &argument) const