mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
committed by
Mathew Sutcliffe
parent
2ba061bbc0
commit
e033cfacfd
@@ -13,16 +13,19 @@
|
||||
const QDBusArgument &operator>>(const QDBusArgument &argument, QPixmap &pixmap)
|
||||
{
|
||||
QByteArray ba;
|
||||
argument.beginStructure();
|
||||
argument >> ba;
|
||||
BlackMisc::pngByteArrayToPixmapRef(ba, pixmap);
|
||||
argument.endStructure();
|
||||
return argument;
|
||||
}
|
||||
|
||||
|
||||
QDBusArgument &operator<<(QDBusArgument &argument, const QPixmap &pixmap)
|
||||
{
|
||||
QByteArray ba;
|
||||
BlackMisc::pixmapToPngByteArray(pixmap, ba);
|
||||
argument.beginStructure();
|
||||
argument << ba;
|
||||
argument.endStructure();
|
||||
return argument;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user