Commit a0a86d7e authored by saubatn's avatar saubatn
Browse files

FIXED Call back of QVTKWidget::MousePressEvent(event*) method when Right button is clicked

NOTE signal rightButtonPressed() is never used (in CamiTK code).

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@2087 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 76fe8a2f
......@@ -1256,16 +1256,19 @@ void RendererWidget::keyPressEvent(QKeyEvent* event) {
event->ignore();
}
//--------------------- mousePressEvent ----------------------------------
void RendererWidget::mousePressEvent ( QMouseEvent* event ) {
if ( ( QApplication::keyboardModifiers() == Qt::ControlModifier ) &&
( event->button() == Qt::LeftButton ) ) {
startPicking();
pickInteractorStyle->OnLeftButtonDown();
} else if ( event->button() == Qt::RightButton ) {
emit rightButtonPressed();
}
else
} else {
if ( event->button() == Qt::RightButton ) {
emit rightButtonPressed();
}
QVTKWidget::mousePressEvent ( event );
}
}
//--------------------- mouseReleaseEvent ----------------------------------
......
Supports Markdown
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