]> Some of my projects - aniplayer.git/commitdiff
Add feature plugin shortcut API
authorAPTX <marek321@gmail.com>
Mon, 21 Feb 2022 14:55:30 +0000 (23:55 +0900)
committerAPTX <marek321@gmail.com>
Mon, 21 Feb 2022 14:55:30 +0000 (23:55 +0900)
pluginapi/aniplayer/featurepluginbase.h

index bdc4a33da4462bbc675b04e51ccfd3e9959f0a67..9a002a655eab43c19c2f3ff8afa7e39f4131e4f7 100644 (file)
@@ -13,6 +13,13 @@ public:
                         PlayerFeaturePluginInterface *interface)
       : m_player{player}, m_playerInterface{interface} {}
 
+  struct  Action {
+    QString name;
+    QString keySequence;
+    const char *slot;
+  };
+  virtual QList<Action> featurePluginActions() const { return {}; }
+
 protected:
   QObject *m_player;
   PlayerFeaturePluginInterface *m_playerInterface;