Skip to content

Fix: setting/moving ROI for tracking/reco

d.kilic requested to merge 41-set-region-of-interest into master

In !2 (merged) I took the mousePress Event of the Graphics view to decide on which signal to emit for the color selection, without propagating it to the rest (children) of the GraphicsView.

The fix is changing this (view.cpp, line 176):

void GraphicsView::mousePressEvent(QMouseEvent *event)
{

    if(event->modifiers() & Qt::ShiftModifier){
        emit setColorEvent(event->pos(), this);
    }else{
        emit colorSelected(event->pos(), this);
    }
}

To this:

void GraphicsView::mousePressEvent(QMouseEvent *event)
{

    if(event->modifiers() & Qt::ShiftModifier){
        emit setColorEvent(event->pos(), this);
    }else{
        emit colorSelected(event->pos(), this);
    }
    QGraphicsView::mousePressEvent(event);
}

Closes #41 (closed)

Merge request reports