From d8bb83aac827f8ccc959a716834e6e4ffb2927ed Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 26 May 2018 09:39:56 +0200 Subject: Profile command --- plugins/ProfileEditor/profileeditorplugin.cpp | 7 ++++--- plugins/ProfileEditor/profileeditorplugin.h | 2 +- plugins/interfaces.h | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'plugins') 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> ProfileEditorPlugin::commands() +QHash > ProfileEditorPlugin::commands() { - QHash> hash; - hash.insert("profileEditor:about", []() { + QHash> 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> commands() override; + QHash> commands() override; // ProfileInterface QDialog *createWidget(QWebEngineProfile *profile, QWidget *parent) override; diff --git a/plugins/interfaces.h b/plugins/interfaces.h index ad3df97..196da0b 100644 --- a/plugins/interfaces.h +++ b/plugins/interfaces.h @@ -27,7 +27,7 @@ class PluginInterface { public: virtual ~PluginInterface() = default; - virtual QHash> commands() = 0; + virtual QHash> commands() = 0; }; class ProfileInterface -- cgit v1.2.1