mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 11:26:11 +00:00
There is NO REASON why MidButton events should not be sent to plugins...
This commit is contained in:
parent
44fa0efe41
commit
367af904d7
@ -580,7 +580,7 @@ void GLArea::mousePressEvent(QMouseEvent*e)
|
||||
e->accept();
|
||||
setFocus();
|
||||
|
||||
if( (iEdit && !suspendedEditor) && !(e->buttons() & Qt::MidButton) )
|
||||
if( (iEdit && !suspendedEditor) )
|
||||
iEdit->mousePressEvent(e,*mm(),this);
|
||||
else {
|
||||
if ((e->modifiers() & Qt::ShiftModifier) && (e->modifiers() & Qt::ControlModifier) &&
|
||||
@ -606,7 +606,7 @@ void GLArea::mousePressEvent(QMouseEvent*e)
|
||||
|
||||
void GLArea::mouseMoveEvent(QMouseEvent*e)
|
||||
{
|
||||
if( (iEdit && !suspendedEditor) && !(e->buttons() & Qt::MidButton) )
|
||||
if( (iEdit && !suspendedEditor) )
|
||||
iEdit->mouseMoveEvent(e,*mm(),this);
|
||||
else {
|
||||
if (isDefaultTrackBall())
|
||||
@ -623,7 +623,7 @@ void GLArea::mouseReleaseEvent(QMouseEvent*e)
|
||||
{
|
||||
//clearFocus();
|
||||
activeDefaultTrackball=true;
|
||||
if( (iEdit && !suspendedEditor) && (e->button() != Qt::MidButton) )
|
||||
if( (iEdit && !suspendedEditor) )
|
||||
iEdit->mouseReleaseEvent(e,*mm(),this);
|
||||
else {
|
||||
if (isDefaultTrackBall()) trackball.MouseUp(e->x(),height()-e->y(), QT2VCG(e->button(), e->modifiers() ) );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user