summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-27 12:54:30 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-27 12:54:30 +0100
commitc7048563b95f8d27b20aac0a0e1fbc5c4584c514 (patch)
treeb1513c556461a14d2e3bda6c43ce74d4d1eb5f72 /src/webview.cpp
parentAdded SlackBuild (diff)
downloadrekonq-c7048563b95f8d27b20aac0a0e1fbc5c4584c514.tar.xz
BrowserMainWindow --> MainWindow
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index edae86eb..e17a961a 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -20,7 +20,7 @@
#include "browserapplication.h"
-#include "browsermainwindow.h"
+#include "mainwindow.h"
#include "cookiejar.h"
#include "downloadmanager.h"
#include "networkaccessmanager.h"
@@ -48,12 +48,12 @@ WebPage::WebPage(QObject *parent)
}
-BrowserMainWindow *WebPage::mainWindow()
+MainWindow *WebPage::mainWindow()
{
QObject *w = this->parent();
while (w)
{
- if (BrowserMainWindow *mw = qobject_cast<BrowserMainWindow*>(w))
+ if (MainWindow *mw = qobject_cast<MainWindow*>(w))
return mw;
w = w->parent();
}
@@ -73,7 +73,7 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r
if (newWindow)
{
BrowserApplication::instance()->newMainWindow();
- BrowserMainWindow *newMainWindow = BrowserApplication::instance()->mainWindow();
+ MainWindow *newMainWindow = BrowserApplication::instance()->mainWindow();
webView = newMainWindow->currentTab();
newMainWindow->raise();
newMainWindow->activateWindow();
@@ -108,7 +108,7 @@ QWebPage *WebPage::createWindow(QWebPage::WebWindowType type)
return mainWindow()->tabWidget()->newTab()->page();
}
BrowserApplication::instance()->newMainWindow();
- BrowserMainWindow *mainWindow = BrowserApplication::instance()->mainWindow();
+ MainWindow *mainWindow = BrowserApplication::instance()->mainWindow();
return mainWindow->currentTab()->page();
}