connect(myViewPort, SIGNAL(vpUpdated()), this, SLOT(updateToolBar()));
connect(this, SIGNAL(vpTransformationFinished(XGUI_ViewWindow::OperationType)),
this, SLOT(updateToolBar()));
-
}
//****************************************************************
l_mbPressEvent = new QMouseEvent( *theEvent );*/
}
+//****************************************************************
+void XGUI_ViewWindow::contextMenuEvent(QContextMenuEvent* theEvent)
+{
+ QFrame::contextMenuEvent(theEvent);
+ emit contextMenuRequested(theEvent);
+}
+
//****************************************************************
void XGUI_ViewWindow::vpMouseReleaseEvent(QMouseEvent* theEvent)
{
}
*/
emit mouseReleased(this, theEvent);
- if (theEvent->button() == Qt::RightButton && prevState == -1) {
- QContextMenuEvent aEvent(QContextMenuEvent::Mouse, theEvent->pos(), theEvent->globalPos());
- emit contextMenuRequested(&aEvent);
- }
}
break;
case ROTATE: