summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-07-24 02:52:32 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-07-24 02:52:32 +0200
commit087924515fa1a0885b36859123c86ed9a4ff97c3 (patch)
tree73e95c19098e039064fc767992109e667af9ca30 /src/webpage.cpp
parentcleaning code a bit... (diff)
downloadrekonq-087924515fa1a0885b36859123c86ed9a4ff97c3.tar.xz
cleaning web* classes and fixing newWindow and createWindow WebPage
slots
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 203de688..80eb6bd8 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -84,7 +84,15 @@ WebPage::WebPage(QObject *parent)
}
-QWebPage *WebPage::createWindow(QWebPage::WebWindowType type)
+WebPage *WebPage::createWindow(QWebPage::WebWindowType type)
+{
+ kDebug() << "WebPage createWindow slot";
+
+ return createWindow(type);
+}
+
+
+WebPage *WebPage::newWindow(WebWindowType type)
{
kDebug() << "creating window as new tab.. ";
@@ -95,7 +103,7 @@ QWebPage *WebPage::createWindow(QWebPage::WebWindowType type)
kDebug() << "Modal Dialog ---------------------------------------";
}
- WebView *w = Application::instance()->newWebView();
+ WebView *w = Application::instance()->mainWindow()->mainView()->newTab();
return w->page();
}
@@ -237,10 +245,3 @@ QString WebPage::chooseFile(QWebFrame *frame, const QString &suggestedFile)
{
return KFileDialog::getOpenFileName(suggestedFile, QString(), frame->page()->view());
}
-
-
-WebPage *WebPage::newWindow(WebWindowType type)
-{
- Q_UNUSED(type);
- return 0;
-}