timelineviewblockitem: fixed incorrectly positioned underline
This commit is contained in:
@@ -145,7 +145,7 @@ void TimelineViewBlockItem::paint(QPainter *painter, const QStyleOptionGraphicsI
|
||||
QFontMetrics fm = painter->fontMetrics();
|
||||
int text_width = qMin(qRound(rect().width()), QFontMetricsWidth(fm, block_->block_name()));
|
||||
|
||||
QPointF underline_start = rect().topLeft() + QPointF(0, fm.height());
|
||||
QPointF underline_start = rect().topLeft() + QPointF(0, text_top + fm.height());
|
||||
QPointF underline_end = underline_start + QPointF(text_width, 0);
|
||||
|
||||
painter->drawLine(underline_start, underline_end);
|
||||
|
||||
Reference in New Issue
Block a user