update timeslider's label automatically when the timebase changes

This commit is contained in:
itsmattkc
2019-12-08 00:14:45 +11:00
parent d6fe49aad3
commit 00c06e3e6b
+3
View File
@@ -11,6 +11,9 @@ TimeSlider::TimeSlider(QWidget *parent) :
void TimeSlider::SetTimebase(const rational &timebase)
{
timebase_ = timebase;
// Refresh label since we have a new timebase to generate a timecode with
UpdateLabel(Value());
}
QString TimeSlider::ValueToString(const QVariant &v)