diff --git a/plugininterface b/plugininterface index 8b74254..df2bab4 160000 --- a/plugininterface +++ b/plugininterface @@ -1 +1 @@ -Subproject commit 8b742544a6bc7d360ea80d1e194f110967696ec1 +Subproject commit df2bab4c50b56b50c77aa7e13373343137028b5f diff --git a/searchonweb.h b/searchonweb.h index e5f7de4..4ab28e9 100644 --- a/searchonweb.h +++ b/searchonweb.h @@ -4,7 +4,7 @@ #include "plugininterface.h" #define PLUGIN_NAME "Search On Web" -#define PLUGIN_VERSION "0.0.1" +#define PLUGIN_VERSION "0.0.2" class SearchOnWeb : public PluginInterface { @@ -23,8 +23,11 @@ class SearchOnWeb : public PluginInterface QString name() { return PLUGIN_NAME; } QString version() { return PLUGIN_VERSION; } - QMenu *mainMenu() { return m_mainMenu; } - QAction *mainAction() { return nullptr; } + QMap metaObject() { + QMap ret; + ret.insert("QMenu", (void *)m_mainMenu); + return ret; + } QMenu *terminalContextMenu(QString selectedText, QString workingDirectory, QMenu *parentMenu) {Q_UNUSED(selectedText);Q_UNUSED(workingDirectory);Q_UNUSED(parentMenu); return nullptr;} QList terminalContextAction(QString selectedText, QString workingDirectory, QMenu *parentMenu);