Switching back to comment block
This commit is contained in:
parent
a2d430c95d
commit
d91409bb73
1 changed files with 8 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue