mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-15 18:30:39 +01:00
Register D-Bus metatype for QImage if system has D-Bus
This commit is contained in:
parent
b5e27d4d69
commit
1ae4938da3
@ -42,6 +42,7 @@
|
|||||||
#include <QItemSelection>
|
#include <QItemSelection>
|
||||||
#ifdef HAVE_DBUS
|
#ifdef HAVE_DBUS
|
||||||
# include <QDBusMetaType>
|
# include <QDBusMetaType>
|
||||||
|
# include <QDBusArgument>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "song.h"
|
#include "song.h"
|
||||||
@ -62,6 +63,7 @@
|
|||||||
|
|
||||||
#ifdef HAVE_DBUS
|
#ifdef HAVE_DBUS
|
||||||
# include "mpris2.h"
|
# include "mpris2.h"
|
||||||
|
# include "osd/osddbus.h"
|
||||||
# include "dbus/metatypes.h"
|
# include "dbus/metatypes.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -115,6 +117,7 @@ void RegisterMetaTypes() {
|
|||||||
qRegisterMetaTypeStreamOperators<Equalizer::Params>("Equalizer::Params");
|
qRegisterMetaTypeStreamOperators<Equalizer::Params>("Equalizer::Params");
|
||||||
#ifdef HAVE_DBUS
|
#ifdef HAVE_DBUS
|
||||||
qDBusRegisterMetaType<QList<QByteArray>>();
|
qDBusRegisterMetaType<QList<QByteArray>>();
|
||||||
|
qDBusRegisterMetaType<QImage>();
|
||||||
qDBusRegisterMetaType<TrackMetadata>();
|
qDBusRegisterMetaType<TrackMetadata>();
|
||||||
qDBusRegisterMetaType<Track_Ids>();
|
qDBusRegisterMetaType<Track_Ids>();
|
||||||
qDBusRegisterMetaType<MprisPlaylist>();
|
qDBusRegisterMetaType<MprisPlaylist>();
|
||||||
@ -122,9 +125,6 @@ void RegisterMetaTypes() {
|
|||||||
qDBusRegisterMetaType<MaybePlaylist>();
|
qDBusRegisterMetaType<MaybePlaylist>();
|
||||||
qDBusRegisterMetaType<InterfacesAndProperties>();
|
qDBusRegisterMetaType<InterfacesAndProperties>();
|
||||||
qDBusRegisterMetaType<ManagedObjectList>();
|
qDBusRegisterMetaType<ManagedObjectList>();
|
||||||
#ifdef HAVE_X11
|
|
||||||
qDBusRegisterMetaType<QImage>();
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
qRegisterMetaType<InternetSearchView::ResultList>("InternetSearchView::ResultList");
|
qRegisterMetaType<InternetSearchView::ResultList>("InternetSearchView::ResultList");
|
||||||
|
Loading…
Reference in New Issue
Block a user