summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-10 19:26:02 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-10 19:26:02 +0200
commit447e75df1610cc232a6bdb538da188a902099e1e (patch)
tree2a14cd5354e46886873b60ad5c3c69add100943a
parentFixed some wrong changes (diff)
downloadrekonq-447e75df1610cc232a6bdb538da188a902099e1e.tar.xz
no need for shortcuts in pointer menu..
-rw-r--r--src/tabbar.cpp6
-rw-r--r--src/webview.cpp16
2 files changed, 10 insertions, 12 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp
index c7280f98..94cda51c 100644
--- a/src/tabbar.cpp
+++ b/src/tabbar.cpp
@@ -94,7 +94,7 @@ QSize TabBar::tabSizeHint(int index) const
void TabBar::contextMenuRequested(const QPoint &position)
{
KMenu menu;
- menu.addAction(i18n("New &Tab"), this, SIGNAL(newTab()), QKeySequence::AddTab);
+ menu.addAction(i18n("New &Tab"), this, SIGNAL(newTab()));
int index = tabAt(position);
if (-1 != index)
{
@@ -102,10 +102,10 @@ void TabBar::contextMenuRequested(const QPoint &position)
KAction *action = (KAction *) menu.addAction(i18n("Clone Tab"), this, SLOT(cloneTab()));
menu.addSeparator();
- action = (KAction *) menu.addAction(i18n("&Close Tab"), this, SLOT(closeTab()), QKeySequence::Close);
+ action = (KAction *) menu.addAction(i18n("&Close Tab"), this, SLOT(closeTab()));
action = (KAction *) menu.addAction(i18n("Close &Other Tabs"), this, SLOT(closeOtherTabs()));
menu.addSeparator();
- action = (KAction *) menu.addAction(i18n("Reload Tab"), this, SLOT(reloadTab()), QKeySequence::Refresh);
+ action = (KAction *) menu.addAction(i18n("Reload Tab"), this, SLOT(reloadTab()));
}
else
{
diff --git a/src/webview.cpp b/src/webview.cpp
index 13b8fe61..ee54bbaa 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -76,8 +76,6 @@ MainWindow *WebPage::mainWindow()
bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type)
{
- kWarning() << "Accepting Navigation Request..";
-
QString scheme = request.url().scheme();
if (scheme == QLatin1String("mailto") )
{
@@ -102,7 +100,7 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r
// user clicked on a link or pressed return on a focused link.
case QWebPage::NavigationTypeLinkClicked:
- kWarning() << "Navigation Type LINKCLICKED..";
+// kWarning() << "Navigation Type LINKCLICKED..";
if(m_keyboardModifiers & Qt::ControlModifier || m_pressedButtons == Qt::MidButton)
{
@@ -134,32 +132,32 @@ bool WebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &r
// user activated a submit button for an HTML form.
case QWebPage::NavigationTypeFormSubmitted:
- kWarning() << "Navigation Type Form Submitted..";
+// kWarning() << "Navigation Type Form Submitted..";
break;
// Navigation to a previously shown document in the back or forward history is requested.
case QWebPage::NavigationTypeBackOrForward:
- kWarning() << "Navigation Type BackOrForward..";
+// kWarning() << "Navigation Type BackOrForward..";
break;
// user activated the reload action.
case QWebPage::NavigationTypeReload:
- kWarning() << "Navigation Type Reload..";
+// kWarning() << "Navigation Type Reload..";
break;
// An HTML form was submitted a second time.
case QWebPage::NavigationTypeFormResubmitted:
- kWarning() << "Navigation Type Form Resubmitted..";
+// kWarning() << "Navigation Type Form Resubmitted..";
break;
// A navigation to another document using a method not listed above.
case QWebPage::NavigationTypeOther:
- kWarning() << "Navigation Type OTHER..";
+// kWarning() << "Navigation Type OTHER..";
break;
// should be nothing..
default:
- kWarning() << "Default NON existant case..";
+// kWarning() << "Default NON existant case..";
break;
}