Merge pull request #9521 from saskatchewancatch:i9489

This commit is contained in:
Alexander Alekhin 2017-08-31 09:19:28 +00:00
commit cae467cda0

View File

@ -1410,7 +1410,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);