summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorBernhard Beschow <bbeschow@cs.tu-berlin.de>2009-12-14 17:43:05 +0100
committerBernhard Beschow <bbeschow@cs.tu-berlin.de>2009-12-14 21:55:50 +0100
commit412e9b019ad5c868dd0c5573bf185a32cca31b7d (patch)
tree1a1ee0cddabefdd62e2bef39eef47e52d222e7f9 /src/application.cpp
parentrekonq 0.3.21 (diff)
downloadrekonq-412e9b019ad5c868dd0c5573bf185a32cca31b7d.tar.xz
factor out WebTab class from WebView
* it basically represents a tab in rekonq * everything that happens within one tab should go here (wallet bar, find bar?)
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/application.cpp b/src/application.cpp
index cf77be57..cacdcb5a 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -38,7 +38,7 @@
#include "historymanager.h"
#include "bookmarksmanager.h"
#include "mainview.h"
-#include "webview.h"
+#include "webtab.h"
#include "urlbar.h"
#include "sessionmanager.h"
#include "adblockmanager.h"
@@ -290,7 +290,7 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
}
// first, create the webview(s) to not let hangs UI..
- WebView *webView = 0;
+ WebTab *webView = 0;
MainWindow *w = 0;
if(type == Rekonq::NewWindow)
w = newMainWindow();
@@ -300,18 +300,18 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
switch(type)
{
case Rekonq::SettingOpenTab:
- webView = w->mainView()->newWebView(!ReKonfig::openTabsBack(),
- ReKonfig::openTabsNearCurrent());
+ webView = w->mainView()->newWebTab(!ReKonfig::openTabsBack(),
+ ReKonfig::openTabsNearCurrent());
break;
case Rekonq::NewCurrentTab:
- webView = w->mainView()->newWebView(true);
+ webView = w->mainView()->newWebTab(true);
break;
case Rekonq::NewBackTab:
- webView = w->mainView()->newWebView(false, ReKonfig::openTabsNearCurrent());
+ webView = w->mainView()->newWebTab(false, ReKonfig::openTabsNearCurrent());
break;
case Rekonq::NewWindow:
case Rekonq::CurrentTab:
- webView = w->mainView()->currentWebView();
+ webView = w->mainView()->currentWebTab();
break;
};
@@ -358,7 +358,7 @@ void Application::loadUrl(const KUrl& url, const Rekonq::OpenType& type)
if (webView)
{
webView->setFocus();
- webView->load(loadingUrl);
+ webView->view()->load(loadingUrl);
}
}
@@ -372,7 +372,7 @@ void Application::loadUrl(const QString& urlString, const Rekonq::OpenType& typ
MainWindow *Application::newMainWindow()
{
MainWindow *w = new MainWindow();
- w->mainView()->newWebView(); // remember using newWebView and NOT newTab here!!
+ w->mainView()->newWebTab(); // remember using newWebView and NOT newTab here!!
m_mainWindows.prepend(w);
w->show();