summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-03-12 01:05:59 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-03-12 01:05:59 +0100
commita82439eec3599ac3d07516bee77713deb599299f (patch)
tree3af3798afd96b45cefc49a3f48d1e35cf7246ebf /src/webview.cpp
parentSolved initial size problem! (diff)
downloadrekonq-a82439eec3599ac3d07516bee77713deb599299f.tar.xz
Added some warning
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index cf4d2398..b9af551d 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -55,6 +55,12 @@ WebPage::WebPage(QObject *parent)
}
+WebPage::~WebPage()
+{
+
+}
+
+
MainWindow *WebPage::mainWindow()
{
QObject *w = this->parent();
@@ -70,6 +76,8 @@ MainWindow *WebPage::mainWindow()
bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type)
{
+ kWarning() << "Accepting Navigation Request..";
+
// ctrl open in new tab and select
// ctrl-alt open in new window
if ( type == QWebPage::NavigationTypeLinkClicked && (m_keyboardModifiers & Qt::ControlModifier
@@ -87,6 +95,11 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r
m_loadingUrl = request.url();
emit loadingUrl(m_loadingUrl);
}
+ else
+ {
+ kWarning() << "NO Main Frame..";
+ kWarning() << "Frame : " << frame->frameName();
+ }
return QWebPage::acceptNavigationRequest(frame, request, type);
}
@@ -177,7 +190,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply)
}
-// ------------------------------------------------------------------------------------------------------------------------------------------------------
+// -----------------------------------------------------------------------------------------------------------------
WebView::WebView(QWidget* parent)