summaryrefslogtreecommitdiff
path: root/src/settings/settingsdialog.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-18 01:04:36 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-18 01:04:36 +0200
commit118dff93740d3f8e20dc57e2c2b92b9ad30bd58a (patch)
tree6d0520865a88c0d0be4a809c37079afa6749f2e4 /src/settings/settingsdialog.cpp
parentFix crashes on file:// urls (diff)
downloadrekonq-118dff93740d3f8e20dc57e2c2b92b9ad30bd58a.tar.xz
Add option to choose new tab page as home page
BUG:235106
Diffstat (limited to 'src/settings/settingsdialog.cpp')
-rw-r--r--src/settings/settingsdialog.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/settings/settingsdialog.cpp b/src/settings/settingsdialog.cpp
index d2d5c0d0..3f701c5b 100644
--- a/src/settings/settingsdialog.cpp
+++ b/src/settings/settingsdialog.cpp
@@ -151,6 +151,10 @@ SettingsDialog::SettingsDialog(QWidget *parent)
connect(d->generalUi.setHomeToCurrentPageButton, SIGNAL(clicked()), this, SLOT(setHomeToCurrentPage()));
+ // new tab page
+ disableHomeSettings(ReKonfig::useNewTabPage());
+ connect(d->generalUi.kcfg_useNewTabPage, SIGNAL(toggled(bool)), this, SLOT(disableHomeSettings(bool)));
+
// update buttons
connect(d->adBlockWidg, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
connect(d->networkWidg, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
@@ -239,3 +243,10 @@ void SettingsDialog::setHomeToCurrentPage()
d->generalUi.kcfg_homePage->setText(webTab->url().prettyUrl());
}
}
+
+
+void SettingsDialog::disableHomeSettings(bool b)
+{
+ d->generalUi.kcfg_homePage->setEnabled(!b);
+ d->generalUi.setHomeToCurrentPageButton->setEnabled(!b);
+}