Increase ladder width if displaying timeciode

This commit is contained in:
Thomas Wilshaw
2021-04-08 11:41:42 +01:00
parent 76f8c12a96
commit f560beef60
+6
View File
@@ -291,6 +291,12 @@ void SliderLadderElement::UpdateLabel()
} else {
label_->setText(value_);
}
// Increase the ladder width if displaying timecode
if (value_.contains(":")) {
label_->setFixedWidth(QtUtils::QFontMetricsWidth(label_->fontMetrics(), QStringLiteral("00:00:00:00")));
}
}
}