diff --git a/app/qml/main.qml b/app/qml/main.qml index ccde54151..9b4cf8251 100644 --- a/app/qml/main.qml +++ b/app/qml/main.qml @@ -119,7 +119,7 @@ ApplicationWindow text: i18n("Open Multimedia Remote Control") onClicked: stack.push( { item: "qrc:/qml/mpris.qml", - properties: { mprisInterface: MprisDbusInterfaceFactory.create(deviceView.currentDevice.id) } + properties: { mprisInterface: MprisDbusInterfaceFactory.create(deviceView.currentDevice.id()) } } ); } Button { diff --git a/interfaces/dbusinterfaces.h b/interfaces/dbusinterfaces.h index 0b4646b22..260a0e693 100644 --- a/interfaces/dbusinterfaces.h +++ b/interfaces/dbusinterfaces.h @@ -52,13 +52,11 @@ class KDECONNECTINTERFACES_EXPORT DeviceDbusInterface // the signals for the properties Q_PROPERTY(bool isPaired READ isPaired NOTIFY pairingChangedProxy) - /** @returns an id even if the interface isn't valid */ - Q_PROPERTY(QString id READ id CONSTANT) public: DeviceDbusInterface(const QString& deviceId, QObject* parent = 0); virtual ~DeviceDbusInterface(); - QString id() const; + Q_SCRIPTABLE QString id() const; Q_SCRIPTABLE void pluginCall(const QString &plugin, const QString &method); Q_SIGNALS: