Commit 33ba7867 authored by saskatchewancatch's avatar saskatchewancatch Committed by GitHub

Don't truncate label for tracknbar name (Qt)

Setting truncate option for QString leftJustified method to false fixes 10 character truncation issue noted in issue 9489
parent a8355170
......@@ -1409,7 +1409,7 @@ void CvTrackbar::update(int myvalue)
void CvTrackbar::setLabel(int myvalue)
{
QString nameNormalized = name_bar.leftJustified( 10, ' ', true );
QString nameNormalized = name_bar.leftJustified( 10, ' ', false );
QString valueMaximum = QString("%1").arg(slider->maximum());
QString str = QString("%1 (%2/%3)").arg(nameNormalized).arg(myvalue,valueMaximum.length(),10,QChar('0')).arg(valueMaximum);
label->setText(str);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment