Commit a92112ad authored by Piyush Aggarwal's avatar Piyush Aggarwal 🎮
Browse files

remotecontrolplugin: fix sendCommand param

parent 85aee295
......@@ -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);
}
......
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment