diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-13 03:14:55 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-13 03:14:55 +0200 |
commit | 09567d9fbf6e034319bbdf7820f4bceac42cee12 (patch) | |
tree | 94352260f033ed1c1dd24230a0a30b071e8b3ada /src/mainview.cpp | |
parent | notification system made default and no more "unsettable" (diff) | |
download | rekonq-09567d9fbf6e034319bbdf7820f4bceac42cee12.tar.xz |
Modified rekonq behaviour:
HomePage has 2 choices: usual home page vs new tab page
new tab has 3: new tabp page, home page, blank page
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r-- | src/mainview.cpp | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index 07f209b7..7c91b992 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -296,7 +296,19 @@ void MainView::newTab() urlBar()->setUrl(KUrl("")); urlBar()->setFocus(); - slotHome(); + HomePage p; + + switch(ReKonfig::newTabsBehaviour()) + { + case 0: + w->setHtml( p.rekonqHomePage() ); + break; + case 2: + w->load( QUrl(ReKonfig::homePage()) ); + break; + default: + break; + } } @@ -570,22 +582,3 @@ void MainView::resizeEvent(QResizeEvent *event) { KTabWidget::resizeEvent(event); } - - -void MainView::slotHome() -{ - WebView *w = currentWebView(); - HomePage p; - - switch(ReKonfig::newTabsBehaviour()) - { - case 0: - w->setHtml( p.rekonqHomePage(), QUrl()); - break; - case 2: - w->load( QUrl(ReKonfig::homePage()) ); - break; - default: - break; - } -} |