mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-02 20:28:14 +02:00
Don't wordwrap download count
This commit is contained in:
@@ -389,7 +389,7 @@ AccountDelegate::paint ( QPainter* painter, const QStyleOptionViewItem& option,
|
|||||||
const int countW = painter->fontMetrics().width( count );
|
const int countW = painter->fontMetrics().width( count );
|
||||||
const QRect countRect( runningEdge + 50, starsTop, countW, painter->fontMetrics().height() );
|
const QRect countRect( runningEdge + 50, starsTop, countW, painter->fontMetrics().height() );
|
||||||
count = painter->fontMetrics().elidedText( count, Qt::ElideRight, rightEdge - PADDING - countRect.left() );
|
count = painter->fontMetrics().elidedText( count, Qt::ElideRight, rightEdge - PADDING - countRect.left() );
|
||||||
painter->drawText( countRect, Qt::AlignLeft | Qt::TextWordWrap, count );
|
painter->drawText( countRect, Qt::AlignLeft, count );
|
||||||
// runningEdge = authorRect.x();
|
// runningEdge = authorRect.x();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user