summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-03-29 08:04:31 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-03-29 08:04:31 +0200
commit0b151ba388d46c4112b4e861d45f0d8229c8a599 (patch)
tree75dc5023c1f77ac977f6c4b54d0dc28bcd5acc43 /src/webview.cpp
parentSearch wrap (diff)
downloadrekonq-0b151ba388d46c4112b4e861d45f0d8229c8a599.tar.xz
API change (rename). In MainView, newTab --> newWebView
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 239a5f5a..35444f42 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -84,7 +84,7 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r
if (type == QWebPage::NavigationTypeLinkClicked && (m_keyboardModifiers & Qt::ControlModifier
|| m_pressedButtons == Qt::MidButton))
{
- WebView *webView = Application::instance()->newTab();
+ WebView *webView = Application::instance()->newWebView();
webView->setFocus();
webView->load(request);
m_keyboardModifiers = Qt::NoModifier;
@@ -122,7 +122,7 @@ QWebPage *WebPage::createWindow(QWebPage::WebWindowType type)
if (m_openInNewTab)
{
m_openInNewTab = false;
- return mainWindow()->mainView()->newTab()->page();
+ return mainWindow()->mainView()->newWebView()->page();
}
MainWindow *mainWindow = Application::instance()->mainWindow();