aboutsummaryrefslogtreecommitdiff
path: root/src/forms
diff options
context:
space:
mode:
Diffstat (limited to 'src/forms')
-rw-r--r--src/forms/profiledialog.cpp4
-rw-r--r--src/forms/profiledialog.ui28
2 files changed, 32 insertions, 0 deletions
diff --git a/src/forms/profiledialog.cpp b/src/forms/profiledialog.cpp
index 14279c4..b485419 100644
--- a/src/forms/profiledialog.cpp
+++ b/src/forms/profiledialog.cpp
@@ -1,6 +1,8 @@
#include "profiledialog.h"
#include "ui_profiledialog.h"
+#include <QLineEdit>
+
ProfileDialog::ProfileDialog(QWebEngineProfile *profile, QWidget *parent) :
QDialog(parent),
ui(new Ui::ProfileDialog)
@@ -9,6 +11,8 @@ ProfileDialog::ProfileDialog(QWebEngineProfile *profile, QWidget *parent) :
ui->setupUi(this);
ui->userAgent_lineEdit->setText(_profile->httpUserAgent());
+ ui->storagePath_lineEdit->setText(_profile->persistentStoragePath());
+ ui->cachePath_lineEdit->setText(_profile->cachePath());
connect(this, SIGNAL(accepted()), this, SLOT(saveProfile()));
}
diff --git a/src/forms/profiledialog.ui b/src/forms/profiledialog.ui
index 160743b..097d9cb 100644
--- a/src/forms/profiledialog.ui
+++ b/src/forms/profiledialog.ui
@@ -26,6 +26,34 @@
<item row="0" column="1">
<widget class="QLineEdit" name="userAgent_lineEdit"/>
</item>
+ <item row="1" column="0">
+ <widget class="QLabel" name="label_2">
+ <property name="text">
+ <string>Storage Path</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QLineEdit" name="storagePath_lineEdit">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0">
+ <widget class="QLabel" name="label_3">
+ <property name="text">
+ <string>Cache Path</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="1">
+ <widget class="QLineEdit" name="cachePath_lineEdit">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
</layout>
</item>
<item>