فهرست منبع

Make userCommand invokable so that the host command code can find it.

Tobias Hieta 9 سال پیش
والد
کامیت
6f84cbe988
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/player/PlayerComponent.h

+ 1 - 1
src/player/PlayerComponent.h

@@ -78,7 +78,7 @@ public:
   // only. If no video is running, render a black background only.
   Q_INVOKABLE virtual void setVideoOnlyMode(bool enable);
 
-  void userCommand(const QString& command);
+  Q_INVOKABLE void userCommand(const QString& command);
 
   const mpv::qt::Handle getMpvHandle() const { return m_mpv; }