Commit 10b83ffd authored by C. Boemann's avatar C. Boemann
Browse files

Time to implement a fix for an old bug

Happy new year
BUG: 260022
parent cfb02531
......@@ -85,6 +85,11 @@ QPointF KWCanvas::viewToDocument(const QPointF &viewPoint) 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)
{
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment