summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-11-07 23:34:43 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-11-19 00:12:21 +0100
commit89d4696eae6bb7b9824f4c0687fbf27b2551a0e0 (patch)
tree0f47719eccc9b5b9039698ed3a7781a74b6a4c2d /src/mainview.cpp
parentRevert "Add a Clear Button to URL bar to clear it" (diff)
downloadrekonq-89d4696eae6bb7b9824f4c0687fbf27b2551a0e0.tar.xz
API clean up
urlBar --> currentUrlBar
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index beaf4e21..26248da5 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -169,9 +169,9 @@ TabBar *MainView::tabBar() const
}
-UrlBar *MainView::urlBar() const
+UrlBar *MainView::currentUrlBar() const
{
- return _widgetBar->urlBar(m_currentTabIndex);
+ return webTab(currentIndex())->urlBar();
}
@@ -355,7 +355,7 @@ void MainView::newTab()
w->load(KUrl("about:home"));
break;
case 1: // blank page
- urlBar()->clear();
+ currentUrlBar()->clear();
break;
case 2: // homepage
w->load(KUrl(ReKonfig::homePage()));
@@ -363,7 +363,7 @@ void MainView::newTab()
default:
break;
}
- urlBar()->setFocus();
+ currentUrlBar()->setFocus();
}
@@ -450,7 +450,7 @@ void MainView::closeTab(int index, bool del)
case 0: // new tab page
case 1: // blank page
w->load(KUrl("about:home"));
- urlBar()->setFocus();
+ currentUrlBar()->setFocus();
break;
case 2: // homepage
w->load(KUrl(ReKonfig::homePage()));