summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-29 12:15:17 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-29 12:15:17 +0200
commit40ced90916c742bd813be8bfaf7c17490a75a3e0 (patch)
tree750cbc86b076b1dc24a6d9c80d627f00ad54f892 /src/mainview.cpp
parentImplementing a new about: protocol, 1st bunch (diff)
downloadrekonq-40ced90916c742bd813be8bfaf7c17490a75a3e0.tar.xz
Implemented about protocol to load home page(s)
and changed its layout
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index f9a5cc5b..231700a0 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -305,12 +305,10 @@ void MainView::newTab()
{
WebView *w = newWebView();
- HomePage p(w);
-
switch(ReKonfig::newTabsBehaviour())
{
case 0:
- w->setHtml( p.rekonqHomePage() );
+ Application::instance()->homePage();
break;
case 1:
urlBar()->setUrl(KUrl(""));
@@ -581,6 +579,7 @@ QLabel *MainView::animatedLoading(int index, bool addMovie)
return label;
}
+
void MainView::resizeEvent(QResizeEvent *event)
{
KTabWidget::resizeEvent(event);
@@ -592,6 +591,7 @@ KUrl::List MainView::recentlyClosedTabs()
return m_recentlyClosedTabs;
}
+
void MainView::mouseMoveEvent(QMouseEvent *event)
{
//Find the tab under the mouse
@@ -634,6 +634,7 @@ void MainView::leaveEvent(QEvent *event)
KTabWidget::leaveEvent(event);
}
+
void MainView::showTabPreview(int tab)
{
int w=200;