diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-06-01 17:27:58 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-06-01 17:27:58 +0200 |
commit | 329e8de84fc8e0a2e4a04fbaf85ab0e1632c6084 (patch) | |
tree | 864df8426b543d6817d6e364be4889bc6e20d640 /plugins/ProfileEditor/profileeditorplugin.h | |
parent | Middle mouse button closes tab (diff) | |
download | smolbote-329e8de84fc8e0a2e4a04fbaf85ab0e1632c6084.tar.xz |
Only add profiles to profile manager at init
Diffstat (limited to 'plugins/ProfileEditor/profileeditorplugin.h')
-rw-r--r-- | plugins/ProfileEditor/profileeditorplugin.h | 7 |
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 |