minor refactoring and signalling panel subtitle by node change

Fixes issue where Footage Viewer subtitle wouldn't update when
dropping footage in.
This commit is contained in:
itsmattkc
2021-04-08 10:42:13 +10:00
parent 2597eea08b
commit ea29ffef96
15 changed files with 57 additions and 49 deletions
+3 -3
View File
@@ -101,9 +101,10 @@ void ViewerSizer::UpdateSize()
return;
}
// If the aspect ratio is 0, the widget is always hidden
// If the aspect ratio is 0, default to taking all space
if (!width_ || !height_) {
widget_->setVisible(false);
widget_->move(0, 0);
widget_->resize(width(), height());
return;
}
@@ -142,7 +143,6 @@ void ViewerSizer::UpdateSize()
}
// Size widget to the UI space we've calculated
widget_->setVisible(true);
widget_->resize(available_width, available_height);
// Adjust to aspect ratio