aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/profileeditorplugin.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-06-01 17:27:58 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-06-01 17:27:58 +0200
commit329e8de84fc8e0a2e4a04fbaf85ab0e1632c6084 (patch)
tree864df8426b543d6817d6e364be4889bc6e20d640 /plugins/ProfileEditor/profileeditorplugin.h
parentMiddle mouse button closes tab (diff)
downloadsmolbote-329e8de84fc8e0a2e4a04fbaf85ab0e1632c6084.tar.xz
Only add profiles to profile manager at init
Diffstat (limited to 'plugins/ProfileEditor/profileeditorplugin.h')
-rw-r--r--plugins/ProfileEditor/profileeditorplugin.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/ProfileEditor/profileeditorplugin.h b/plugins/ProfileEditor/profileeditorplugin.h
index e026bbe..7ae0a57 100644
--- a/plugins/ProfileEditor/profileeditorplugin.h
+++ b/plugins/ProfileEditor/profileeditorplugin.h
@@ -9,6 +9,7 @@
#ifndef PROFILEEDITOR_PLUGIN_H
#define PROFILEEDITOR_PLUGIN_H
+#include <QHash>
#include <interfaces.h>
class QWebEngineProfile;
@@ -24,7 +25,11 @@ public:
QHash<QString, std::function<int()>> commands() override;
// ProfileInterface
- QDialog *createWidget(QHash<QString, QWebEngineProfile *> profiles, QWidget *parent) override;
+ void addProfile(const QString &name, QWebEngineProfile *profile) override;
+ QDialog *createWidget(QWidget *parent) override;
+
+private:
+ QHash<QString, QWebEngineProfile *> profiles;
};
#endif //PROFILEEDITOR_PLUGIN_H