aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ProfileEditor/profileeditorplugin.cpp7
-rw-r--r--plugins/ProfileEditor/profileeditorplugin.h2
-rw-r--r--plugins/interfaces.h2
3 files changed, 6 insertions, 5 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;
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<QString, std::function<void()>> commands() = 0;
+ virtual QHash<QString, std::function<int()>> commands() = 0;
};
class ProfileInterface