diff --git a/plugins/remotecontrol/remotecontrolplugin.cpp b/plugins/remotecontrol/remotecontrolplugin.cpp index ae8e0cf1a..550565f05 100644 --- a/plugins/remotecontrol/remotecontrolplugin.cpp +++ b/plugins/remotecontrol/remotecontrolplugin.cpp @@ -35,9 +35,9 @@ void RemoteControlPlugin::moveCursor(const QPoint &p) sendPacket(np); } -void RemoteControlPlugin::sendCommand(const QJsonObject& body) +void RemoteControlPlugin::sendCommand(const QVariantMap& body) { - NetworkPacket np(PACKET_TYPE_MOUSEPAD_REQUEST, body.toVariantMap()); + NetworkPacket np(PACKET_TYPE_MOUSEPAD_REQUEST, body); sendPacket(np); } diff --git a/plugins/remotecontrol/remotecontrolplugin.h b/plugins/remotecontrol/remotecontrolplugin.h index bb41175bf..3a996fc79 100644 --- a/plugins/remotecontrol/remotecontrolplugin.h +++ b/plugins/remotecontrol/remotecontrolplugin.h @@ -28,7 +28,7 @@ public: QString dbusPath() const override; Q_SCRIPTABLE void moveCursor(const QPoint &p); - Q_SCRIPTABLE void sendCommand(const QJsonObject& body); + Q_SCRIPTABLE void sendCommand(const QVariantMap& body); }; #endif