diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-12-15 17:01:04 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-12-15 17:01:04 +0100 |
commit | 1be07ceabb90b9ca510dd6ff3f2f3bdb6e448543 (patch) | |
tree | 8897b7fd209889561a5047f4fdc9edd95f61ee38 /src/application.cpp | |
parent | Merge commit 'refs/merge-requests/71' of git://gitorious.org/rekonq/mainline ... (diff) | |
parent | factor out WebTab class from WebView (diff) | |
download | rekonq-1be07ceabb90b9ca510dd6ff3f2f3bdb6e448543.tar.xz |
I tried a bit, but this is not working pretty well :(
We are actually creating two widget for request.
I'll merge it anyway to let you fix it :)
Merge commit 'refs/merge-requests/72' of git://gitorious.org/rekonq/mainline into m72
Conflicts:
src/mainview.cpp
src/webview.cpp
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 18 |
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(); |