Skip to content

Commit 33ba786

Browse files
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
1 parent a835517 commit 33ba786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/highgui/src/window_QT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ void CvTrackbar::update(int myvalue)
14091409

14101410
void CvTrackbar::setLabel(int myvalue)
14111411
{
1412-
QString nameNormalized = name_bar.leftJustified( 10, ' ', true );
1412+
QString nameNormalized = name_bar.leftJustified( 10, ' ', false );
14131413
QString valueMaximum = QString("%1").arg(slider->maximum());
14141414
QString str = QString("%1 (%2/%3)").arg(nameNormalized).arg(myvalue,valueMaximum.length(),10,QChar('0')).arg(valueMaximum);
14151415
label->setText(str);

0 commit comments

Comments
 (0)