Changeset View
Changeset View
Standalone View
Standalone View
dataengines/statusnotifieritem/systemtraytypes.cpp
Show All 36 Lines | |||||
37 | const QDBusArgument &operator>>(const QDBusArgument &argument, KDbusImageStruct &icon) | 37 | const QDBusArgument &operator>>(const QDBusArgument &argument, KDbusImageStruct &icon) | ||
38 | { | 38 | { | ||
39 | qint32 width = 0; | 39 | qint32 width = 0; | ||
40 | qint32 height = 0; | 40 | qint32 height = 0; | ||
41 | QByteArray data; | 41 | QByteArray data; | ||
42 | 42 | | |||
43 | if (argument.currentType() == QDBusArgument::StructureType) { | 43 | if (argument.currentType() == QDBusArgument::StructureType) { | ||
44 | argument.beginStructure(); | 44 | argument.beginStructure(); | ||
45 | //qDebug() << "begun structure"; | 45 | //qCDebug(DATAENGINE_SNI)() << "begun structure"; | ||
46 | argument >> width; | 46 | argument >> width; | ||
47 | //qDebug() << width; | 47 | //qCDebug(DATAENGINE_SNI)() << width; | ||
48 | argument >> height; | 48 | argument >> height; | ||
49 | //qDebug() << height; | 49 | //qCDebug(DATAENGINE_SNI)() << height; | ||
50 | argument >> data; | 50 | argument >> data; | ||
51 | //qDebug() << data.size(); | 51 | //qCDebug(DATAENGINE_SNI)() << data.size(); | ||
52 | argument.endStructure(); | 52 | argument.endStructure(); | ||
53 | } | 53 | } | ||
54 | 54 | | |||
55 | icon.width = width; | 55 | icon.width = width; | ||
56 | icon.height = height; | 56 | icon.height = height; | ||
57 | icon.data = data; | 57 | icon.data = data; | ||
58 | 58 | | |||
59 | return argument; | 59 | return argument; | ||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |