Uncommenting code to silence compiler warnings but retaining
noop
This commit is contained in:
parent
68ee5422a0
commit
68ad1a53a5
1 changed files with 9 additions and 8 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
#include <QBuffer>
|
#include <QBuffer>
|
||||||
|
#include <QDBusArgument>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
|
|
||||||
|
@ -355,15 +356,15 @@ bool DBusNotificationsListener::parseImageDataArgument(const QVariant &argument,
|
||||||
bool &hasAlpha,
|
bool &hasAlpha,
|
||||||
QByteArray &imageData) const
|
QByteArray &imageData) const
|
||||||
{
|
{
|
||||||
// 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();
|
|
||||||
return true;
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
QSharedPointer<QIODevice> DBusNotificationsListener::iconForImageData(const QVariant &argument) const
|
QSharedPointer<QIODevice> DBusNotificationsListener::iconForImageData(const QVariant &argument) const
|
||||||
|
|
Loading…
Reference in a new issue