reimplemented updating UI from effect fields

This commit is contained in:
itsmattkc
2019-03-13 19:43:28 +11:00
parent 1cd5dabc07
commit 654c6f32c6
9 changed files with 60 additions and 2 deletions
+7
View File
@@ -23,6 +23,13 @@ QWidget *ColorField::CreateWidget()
return cb;
}
void ColorField::UpdateWidgetValue(QWidget *widget, double timecode)
{
ColorButton* cb = static_cast<ColorButton*>(widget);
cb->set_color(GetColorAt(timecode));
}
QVariant ColorField::ConvertStringToValue(const QString &s)
{
return QColor(s);