aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/forms/profileview.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-08-27 16:42:51 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-08-27 17:43:02 +0200
commit36dce3fd26194cdf6dbf1ba52cc27cfa1daae389 (patch)
tree23a3919fb67d33583c4bd5c889758bf196100b9a /plugins/ProfileEditor/forms/profileview.h
parentAdd BrowserInterface to simplify plugins a bit (diff)
downloadsmolbote-36dce3fd26194cdf6dbf1ba52cc27cfa1daae389.tar.xz
PluginEditor: implement add plugin action
Diffstat (limited to 'plugins/ProfileEditor/forms/profileview.h')
-rw-r--r--plugins/ProfileEditor/forms/profileview.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/ProfileEditor/forms/profileview.h b/plugins/ProfileEditor/forms/profileview.h
index 6aa7c34..6c77982 100644
--- a/plugins/ProfileEditor/forms/profileview.h
+++ b/plugins/ProfileEditor/forms/profileview.h
@@ -11,6 +11,7 @@
#include <QWidget>
#include <QNetworkCookie>
+#include <QWebEngineSettings>
namespace Ui
{
@@ -18,8 +19,9 @@ class ProfileView;
}
class WebProfile;
-class QWebEngineSettings;
class QWebEngineCookieStore;
+class QCheckBox;
+
class ProfileView : public QWidget
{
Q_OBJECT
@@ -28,6 +30,8 @@ public:
explicit ProfileView(WebProfile *profile, QWidget *parent = nullptr);
~ProfileView() override;
+ bool isChanged() const;
+
private slots:
void loadSettings(QWebEngineSettings *settings);
void loadCookies(QWebEngineCookieStore *store);
@@ -38,6 +42,9 @@ private slots:
private:
Ui::ProfileView *ui;
WebProfile *m_profile;
+ bool m_isChanged = false;
+
+ void connectSetting(QCheckBox *checkBox, QWebEngineSettings *settings, QWebEngineSettings::WebAttribute attr);
};
#endif // PROFILEDIALOG_H