[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra] words/part: Time to implement a fix for an old bug
From: C. Boemann <cbo () boemann ! dk>
Date: 2012-12-31 22:33:12
Message-ID: 20121231223312.197B4A6091 () git ! kde ! org
[Download RAW message or body]
Git commit 10b83ffdd78d8d4d25da53cee8e0a43be7e885d8 by C. Boemann.
Committed on 31/12/2012 at 23:31.
Pushed by boemann into branch 'master'.
Time to implement a fix for an old bug
Happy new year
BUG: 260022
M +5 -0 words/part/KWCanvas.cpp
M +2 -0 words/part/KWCanvas.h
http://commits.kde.org/calligra/10b83ffdd78d8d4d25da53cee8e0a43be7e885d8
diff --git a/words/part/KWCanvas.cpp b/words/part/KWCanvas.cpp
index a741ce4..82fe389 100644
--- a/words/part/KWCanvas.cpp
+++ b/words/part/KWCanvas.cpp
@@ -85,6 +85,11 @@ QPointF KWCanvas::viewToDocument(const QPointF &viewPoin=
t) const
return m_viewMode->viewToDocument(viewPoint, m_viewConverter);
}
=
+void KWCanvas::contextMenuEvent(QContextMenuEvent *e)
+{
+ m_view->popupContextMenu(e->globalPos(), m_toolProxy->popupActionList(=
));
+ e->setAccepted(true);
+}
=
void KWCanvas::mouseMoveEvent(QMouseEvent *e)
{
diff --git a/words/part/KWCanvas.h b/words/part/KWCanvas.h
index 523d57c..3246d75 100644
--- a/words/part/KWCanvas.h
+++ b/words/part/KWCanvas.h
@@ -107,6 +107,8 @@ protected: // QWidget
/// reimplemented method from superclass
virtual void keyPressEvent(QKeyEvent *e);
/// reimplemented method from superclass
+ virtual void contextMenuEvent(QContextMenuEvent *e);
+ /// reimplemented method from superclass
virtual void mouseMoveEvent(QMouseEvent *e);
/// reimplemented method from superclass
virtual void mousePressEvent(QMouseEvent *e);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic