Skip to content

Commit

Permalink
gui/basictracker: Add extra pixels so the whole rectangle is visible
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei-Fabian-Pop <[email protected]>
  • Loading branch information
Andrei-Fabian-Pop committed Sep 26, 2024
1 parent 77da9aa commit 6d34337
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gui/src/basictracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ QRect BasicTracker::trackerRect(QSizeF size) const
yOffset = m_canvas->height() - bottomRight.y();
}

topLeft.rx() += xOffset;
bottomRight.rx() += xOffset;
// hackish - magic +-3 so the whole text is visible
topLeft.rx() += xOffset - 3;
bottomRight.rx() += xOffset + 3;
topLeft.ry() += yOffset;
bottomRight.ry() += yOffset;

Expand Down

0 comments on commit 6d34337

Please sign in to comment.