diff options
Diffstat (limited to 'plugins/ProfileEditor/forms/profileview.h')
-rw-r--r-- | plugins/ProfileEditor/forms/profileview.h | 9 |
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 |