summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-11 20:04:26 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-11 20:04:26 +0200
commitb4830656dbe996fa6d209ed8171cecb68c1331e1 (patch)
tree1c386805d3db52d75d40386e3c821475237b0306
parentpedantic (diff)
parentRemoved MainView events.. (diff)
downloadrekonq-b4830656dbe996fa6d209ed8171cecb68c1331e1.tar.xz
Merge branch 'NoMainViewEvents'
-rw-r--r--src/mainview.cpp40
-rw-r--r--src/mainview.h5
2 files changed, 0 insertions, 45 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 6a7ed495..185d0a41 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -606,46 +606,6 @@ void MainView::aboutToShowRecentTriggeredAction(QAction *action)
}
-void MainView::mouseDoubleClickEvent(QMouseEvent *event)
-{
- if (!childAt(event->pos())
- // Remove the line below when QTabWidget does not have a one pixel frame
- && event->pos().y() < (tabBar()->y() + tabBar()->height()))
- {
- newWebView();
- return;
- }
- KTabWidget::mouseDoubleClickEvent(event);
-}
-
-
-void MainView::contextMenuEvent(QContextMenuEvent *event)
-{
- if (!childAt(event->pos()))
- {
- m_tabBar->contextMenuRequested(event->pos());
- return;
- }
- KTabWidget::contextMenuEvent(event);
-}
-
-
-void MainView::mouseReleaseEvent(QMouseEvent *event)
-{
- if (event->button() == Qt::MidButton && !childAt(event->pos())
- // Remove the line below when QTabWidget does not have a one pixel frame
- && event->pos().y() < (tabBar()->y() + tabBar()->height()))
- {
- KUrl url(QApplication::clipboard()->text(QClipboard::Selection));
- if (!url.isEmpty() && url.isValid() && !url.scheme().isEmpty())
- {
- WebView *webView = newWebView();
- webView->setUrl(url);
- }
- }
-}
-
-
void MainView::loadUrlInCurrentTab(const KUrl &url)
{
WebView *webView = currentWebView();
diff --git a/src/mainview.h b/src/mainview.h
index 995b4f2d..147096d9 100644
--- a/src/mainview.h
+++ b/src/mainview.h
@@ -92,11 +92,6 @@ public:
*/
void showTabBar();
-protected:
- void mouseDoubleClickEvent(QMouseEvent *event);
- void contextMenuEvent(QContextMenuEvent *event);
- void mouseReleaseEvent(QMouseEvent *event);
-
public slots:
/**