aboutsummaryrefslogtreecommitdiff
path: root/src/forms/profiledialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/forms/profiledialog.cpp')
-rw-r--r--src/forms/profiledialog.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/forms/profiledialog.cpp b/src/forms/profiledialog.cpp
index 057dc7d..047f51b 100644
--- a/src/forms/profiledialog.cpp
+++ b/src/forms/profiledialog.cpp
@@ -25,8 +25,10 @@
#include <QPlainTextEdit>
#include <QComboBox>
#include <QPushButton>
+#include "webengine/webengineprofile.h"
+#include "forms/cookiesform.h"
-ProfileDialog::ProfileDialog(QWebEngineProfile *profile, QWidget *parent) :
+ProfileDialog::ProfileDialog(WebEngineProfile *profile, QWidget *parent) :
QDialog(parent),
ui(new Ui::ProfileDialog)
{
@@ -39,6 +41,9 @@ ProfileDialog::ProfileDialog(QWebEngineProfile *profile, QWidget *parent) :
setWindowTitle(tr("Off-the-record"));
}
+ m_cookiesForm = new CookiesForm(_profile->cookieStore(), this);
+ ui->tabWidget->addTab(m_cookiesForm, m_cookiesForm->windowTitle());
+
// http
ui->userAgent->setPlainText(_profile->httpUserAgent());
ui->acceptLanguage->setPlainText(_profile->httpAcceptLanguage());
@@ -68,6 +73,18 @@ ProfileDialog::~ProfileDialog()
delete ui;
}
+void ProfileDialog::showProfile()
+{
+ ui->tabWidget->setCurrentIndex(0);
+ show();
+}
+
+void ProfileDialog::showCookies()
+{
+ ui->tabWidget->setCurrentIndex(4);
+ show();
+}
+
void ProfileDialog::updateProfile()
{
qDebug("Updating profile...");