aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/profileeditorplugin.h
diff options
context:
space:
mode:
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