diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-26 09:39:56 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-26 09:39:56 +0200 |
commit | d8bb83aac827f8ccc959a716834e6e4ffb2927ed (patch) | |
tree | 93c37d473ba37b0582a4fd029e6d3ed8f421cb31 /plugins/ProfileEditor | |
parent | Dock widget shortcut toggle widget visibility (diff) | |
download | smolbote-d8bb83aac827f8ccc959a716834e6e4ffb2927ed.tar.xz |
Profile command
Diffstat (limited to 'plugins/ProfileEditor')
-rw-r--r-- | plugins/ProfileEditor/profileeditorplugin.cpp | 7 | ||||
-rw-r--r-- | plugins/ProfileEditor/profileeditorplugin.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/plugins/ProfileEditor/profileeditorplugin.cpp b/plugins/ProfileEditor/profileeditorplugin.cpp index fc65350..b5e772f 100644 --- a/plugins/ProfileEditor/profileeditorplugin.cpp +++ b/plugins/ProfileEditor/profileeditorplugin.cpp @@ -10,11 +10,12 @@ #include "forms/profileview.h" #include <QHash> -QHash<QString, std::function<void()>> ProfileEditorPlugin::commands() +QHash<QString, std::function<int ()> > ProfileEditorPlugin::commands() { - QHash<QString, std::function<void()>> hash; - hash.insert("profileEditor:about", []() { + QHash<QString, std::function<int()>> hash; + hash.insert("profileEditor:about", []() -> int { qDebug("ProfileEditor for smolbote"); + return 0; }); return hash; } diff --git a/plugins/ProfileEditor/profileeditorplugin.h b/plugins/ProfileEditor/profileeditorplugin.h index 88a0783..4f88e1b 100644 --- a/plugins/ProfileEditor/profileeditorplugin.h +++ b/plugins/ProfileEditor/profileeditorplugin.h @@ -21,7 +21,7 @@ class ProfileEditorPlugin : public QObject, public PluginInterface, public Profi public: // PluginInterface - QHash<QString, std::function<void()>> commands() override; + QHash<QString, std::function<int()>> commands() override; // ProfileInterface QDialog *createWidget(QWebEngineProfile *profile, QWidget *parent) override; |