implemented #92

This commit is contained in:
itsmattkc
2019-03-15 09:59:31 +11:00
parent 058e5b25c5
commit db22704169
27 changed files with 220 additions and 72 deletions
+2 -2
View File
@@ -13,9 +13,9 @@ QString FileField::GetFileAt(double timecode)
return GetValueAt(timecode).toString();
}
QWidget *FileField::CreateWidget()
QWidget *FileField::CreateWidget(QWidget *existing)
{
EmbeddedFileChooser* efc = new EmbeddedFileChooser();
EmbeddedFileChooser* efc = (existing != nullptr) ? static_cast<EmbeddedFileChooser*>(existing) : new EmbeddedFileChooser();
connect(efc, SIGNAL(changed(const QString&)), this, SLOT(UpdateFromWidget(const QString&)));
connect(this, SIGNAL(EnabledChanged(bool)), efc, SLOT(setEnabled(bool)));