summaryrefslogtreecommitdiff
path: root/src
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
parentSolved initial size problem! (diff)
downloadrekonq-a82439eec3599ac3d07516bee77713deb599299f.tar.xz
Added some warning
Diffstat (limited to 'src')
-rw-r--r--src/webview.cpp15
-rw-r--r--src/webview.h4
2 files changed, 17 insertions, 2 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)
diff --git a/src/webview.h b/src/webview.h
index b3d6ca1b..f2e8d7dc 100644
--- a/src/webview.h
+++ b/src/webview.h
@@ -47,6 +47,8 @@ signals:
public:
WebPage(QObject *parent = 0);
+ ~WebPage();
+
MainWindow *mainWindow();
protected:
@@ -100,7 +102,7 @@ protected:
void wheelEvent(QWheelEvent *event);
/**
- * FIlters (SHIFT + ) CTRL + TAB events and emit (shift)ctrlTabPressed()
+ * Filters (SHIFT + ) CTRL + TAB events and emit (shift)ctrlTabPressed()
* to make switch tab
*/
void keyPressEvent(QKeyEvent *event);