diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-08 02:38:18 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-10 22:15:10 +0200 |
commit | 667bd0a8450835f9b95b8ce83fb4f04a7df6d4ca (patch) | |
tree | a202cb184a88313c24c407d94d5c3147d144a57e /src/settings.cpp | |
parent | rekonq 0.2.56 with session management (recover on crash) (diff) | |
download | rekonq-667bd0a8450835f9b95b8ce83fb4f04a7df6d4ca.tar.xz |
HUGE HUGE HUGE COMMIT!
First implementation of "rekonq home page"
- Added icons && htmls for it
- fixed pics places && CMakeLists.txt
- Added a HomePage class to create the "rekonq home Page"
- Modified setting to load on new tab start
1) rekonq home page (default)
2) blank page
3) an url (to set)
- removed home page button
- fixed WebPage && loadUrl slot to load "home:" scheme
- Added a toolbar method in BookmarksProvider to load bookmarks in the homepage
The page needs a lot of love, but I think this is a really good starting point for.
Hope you like it :)
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 843b3375..0838b252 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -141,6 +141,10 @@ SettingsDialog::SettingsDialog(QWidget *parent) connect(d->generalUi.setHomeToCurrentPageButton, SIGNAL(clicked()), this, SLOT(setHomeToCurrentPage())); + int n = d->generalUi.kcfg_newTabsBehaviour->currentIndex(); + checkLineEnable(n); + connect(d->generalUi.kcfg_newTabsBehaviour, SIGNAL(currentIndexChanged(int)), this, SLOT(checkLineEnable(int))); + connect(d->ebrowsingModule, SIGNAL(changed(bool)), this, SLOT(updateButtons())); connect(d->cookiesModule, SIGNAL(changed(bool)), this, SLOT(updateButtons())); @@ -214,3 +218,18 @@ void SettingsDialog::setHomeToCurrentPage() d->generalUi.kcfg_homePage->setText(webView->url().prettyUrl()); } } + + +void SettingsDialog::checkLineEnable(int n) +{ + if(n == 2) + { + d->generalUi.kcfg_homePage->setEnabled(true); + d->generalUi.setHomeToCurrentPageButton->setEnabled(true); + } + else + { + d->generalUi.kcfg_homePage->setEnabled(false); + d->generalUi.setHomeToCurrentPageButton->setEnabled(false); + } +}
\ No newline at end of file |