From 0b151ba388d46c4112b4e861d45f0d8229c8a599 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 29 Mar 2009 08:04:31 +0200 Subject: API change (rename). In MainView, newTab --> newWebView --- src/mainview.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/mainview.cpp') diff --git a/src/mainview.cpp b/src/mainview.cpp index 4ab8dc8b..3c563230 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -61,7 +61,7 @@ MainView::MainView(QWidget *parent) { setTabBar(m_tabBar); - connect(m_tabBar, SIGNAL(newTab()), this, SLOT(newTab())); + connect(m_tabBar, SIGNAL(newTab()), this, SLOT(newWebView())); connect(m_tabBar, SIGNAL(closeTab(int)), this, SLOT(closeTab(int))); connect(m_tabBar, SIGNAL(cloneTab(int)), this, SLOT(cloneTab(int))); connect(m_tabBar, SIGNAL(closeOtherTabs(int)), this, SLOT(closeOtherTabs(int))); @@ -317,7 +317,7 @@ WebView *MainView::webView(int index) const { MainView *that = const_cast(this); that->setUpdatesEnabled(false); - that->newTab(); + that->newWebView(); that->closeTab(0); that->setUpdatesEnabled(true); return currentWebView(); @@ -334,7 +334,7 @@ int MainView::webViewIndex(WebView *webView) const } -WebView *MainView::newTab(bool makeCurrent) +WebView *MainView::newWebView(bool makeCurrent) { // line edit UrlBar *urlLineEdit = new UrlBar; @@ -465,7 +465,7 @@ void MainView::cloneTab(int index) index = currentIndex(); if (index < 0 || index >= count()) return; - WebView *tab = newTab(false); + WebView *tab = newWebView(false); tab->setUrl(webView(index)->url()); showTabBar(); @@ -593,7 +593,7 @@ void MainView::mouseDoubleClickEvent(QMouseEvent *event) // Remove the line below when QTabWidget does not have a one pixel frame && event->pos().y() < (tabBar()->y() + tabBar()->height())) { - newTab(); + newWebView(); return; } KTabWidget::mouseDoubleClickEvent(event); @@ -620,7 +620,7 @@ void MainView::mouseReleaseEvent(QMouseEvent *event) KUrl url(QApplication::clipboard()->text(QClipboard::Selection)); if (!url.isEmpty() && url.isValid() && !url.scheme().isEmpty()) { - WebView *webView = newTab(); + WebView *webView = newWebView(); webView->setUrl(url); } } -- cgit v1.2.1