panels: enforced setting an object name by using a mandatory constructor parameter

This commit is contained in:
itsmattkc
2020-04-19 01:35:48 +10:00
parent f2bff5f150
commit 2716cfa7f5
19 changed files with 23 additions and 58 deletions
+1 -4
View File
@@ -23,11 +23,8 @@
OLIVE_NAMESPACE_ENTER
ParamPanel::ParamPanel(QWidget* parent) :
TimeBasedPanel(parent)
TimeBasedPanel(QStringLiteral("ParamPanel"), parent)
{
// FIXME: This won't work if there's ever more than one of this panel
setObjectName("ParamPanel");
NodeParamView* view = new NodeParamView();
connect(view, &NodeParamView::SelectedInputChanged, this, &ParamPanel::SelectedInputChanged);
connect(view, &NodeParamView::TimeTargetChanged, this, &ParamPanel::TimeTargetChanged);