aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/forms/profileview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ProfileEditor/forms/profileview.cpp')
-rw-r--r--plugins/ProfileEditor/forms/profileview.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/ProfileEditor/forms/profileview.cpp b/plugins/ProfileEditor/forms/profileview.cpp
index e265e16..2ffb119 100644
--- a/plugins/ProfileEditor/forms/profileview.cpp
+++ b/plugins/ProfileEditor/forms/profileview.cpp
@@ -35,6 +35,21 @@ ProfileView::ProfileView(WebProfile *profile, QWidget *parent)
ui->name->setText(profile->name());
ui->offTheRecord->setChecked(profile->isOffTheRecord());
+ ui->homepage->setText(profile->homepage().toString());
+ connect(ui->homepage, &QLineEdit::editingFinished, profile, [=]() {
+ profile->setHomepage(QUrl::fromUserInput(ui->homepage->text()));
+ });
+
+ ui->newtab->setText(profile->newtab().toString());
+ connect(ui->newtab, &QLineEdit::editingFinished, profile, [=]() {
+ profile->setNewtab(QUrl::fromUserInput(ui->newtab->text()));
+ });
+
+ ui->search->setText(profile->search());
+ connect(ui->search, &QLineEdit::editingFinished, profile, [=]() {
+ profile->setSearch(ui->search->text());
+ });
+
// http tab
ui->userAgent->setPlainText(m_profile->httpUserAgent());
connect(ui->userAgent, &QPlainTextEdit::textChanged, profile, [=]() {