mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 13:10:12 +08:00
Merge pull request #9521 from saskatchewancatch:i9489
This commit is contained in:
commit
cae467cda0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user