remotecontrolplugin: fix sendCommand param
This commit is contained in:
parent
85aee29545
commit
a92112ad47
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue