Skip to content
Snippets Groups Projects
Commit 76374105 authored by d.kilic's avatar d.kilic
Browse files

Merge branch...

Merge branch '357-checkbox-show-trajectory-only-for-visible-people-working-incorrectly' into 'master'

Refactor boolean expression

Closes #357

See merge request !249
parents f12b0398 01019708
No related branches found
No related tags found
1 merge request!249Refactor boolean expression
Pipeline #87846 passed
......@@ -695,9 +695,12 @@ void TrackerItem::paint(QPainter *painter, const QStyleOptionGraphicsItem * /*op
}
}
if(((mControlWidget->isTrackShowPointsChecked()) || (mControlWidget->isTrackShowPathChecked()) ||
(mControlWidget->isTrackShowGroundPathChecked())) &&
((person.trackPointExist(curFrame)) || (mControlWidget->isTrackShowOnlyVisibleChecked())))
const bool showPathLike = mControlWidget->isTrackShowPointsChecked() ||
mControlWidget->isTrackShowPathChecked() ||
mControlWidget->isTrackShowGroundPathChecked();
const bool personToDraw =
!mControlWidget->isTrackShowOnlyVisibleChecked() || person.trackPointExist(curFrame);
if(showPathLike && personToDraw)
{
if(mControlWidget->getTrackShowBefore() == -1)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment