remotecontrolplugin: fix sendCommand param

This commit is contained in:
Piyush Aggarwal 2021-07-16 01:49:09 +05:30
parent 85aee29545
commit a92112ad47
2 changed files with 3 additions and 3 deletions

View file

@ -35,9 +35,9 @@ void RemoteControlPlugin::moveCursor(const QPoint &p)
sendPacket(np); 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); sendPacket(np);
} }

View file

@ -28,7 +28,7 @@ public:
QString dbusPath() const override; QString dbusPath() const override;
Q_SCRIPTABLE void moveCursor(const QPoint &p); Q_SCRIPTABLE void moveCursor(const QPoint &p);
Q_SCRIPTABLE void sendCommand(const QJsonObject& body); Q_SCRIPTABLE void sendCommand(const QVariantMap& body);
}; };
#endif #endif