diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-16 18:20:25 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-16 18:20:25 +0200 |
commit | 6d095aca7f59dff26df0e2b5283d926feff5b477 (patch) | |
tree | da26b56719aefee7eec5b81a47b6b6ad49125437 /plugins/ProfileEditor | |
parent | Move help and version functions to main (out of Configuration) (diff) | |
download | smolbote-6d095aca7f59dff26df0e2b5283d926feff5b477.tar.xz |
Plugin command-line parameters
Diffstat (limited to 'plugins/ProfileEditor')
-rw-r--r-- | plugins/ProfileEditor/profileeditorplugin.cpp | 10 | ||||
-rw-r--r-- | plugins/ProfileEditor/profileeditorplugin.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/plugins/ProfileEditor/profileeditorplugin.cpp b/plugins/ProfileEditor/profileeditorplugin.cpp index 7a92e51..fc65350 100644 --- a/plugins/ProfileEditor/profileeditorplugin.cpp +++ b/plugins/ProfileEditor/profileeditorplugin.cpp @@ -8,6 +8,16 @@ #include "profileeditorplugin.h" #include "forms/profileview.h" +#include <QHash> + +QHash<QString, std::function<void()>> ProfileEditorPlugin::commands() +{ + QHash<QString, std::function<void()>> hash; + hash.insert("profileEditor:about", []() { + qDebug("ProfileEditor for smolbote"); + }); + return hash; +} QDialog *ProfileEditorPlugin::createWidget(QWebEngineProfile *profile, QWidget *parent) { diff --git a/plugins/ProfileEditor/profileeditorplugin.h b/plugins/ProfileEditor/profileeditorplugin.h index 899c51a..88a0783 100644 --- a/plugins/ProfileEditor/profileeditorplugin.h +++ b/plugins/ProfileEditor/profileeditorplugin.h @@ -21,6 +21,7 @@ class ProfileEditorPlugin : public QObject, public PluginInterface, public Profi public: // PluginInterface + QHash<QString, std::function<void()>> commands() override; // ProfileInterface QDialog *createWidget(QWebEngineProfile *profile, QWidget *parent) override; |