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
@@ -26,11 +26,8 @@
OLIVE_NAMESPACE_ENTER
ToolPanel::ToolPanel(QWidget *parent) :
PanelWidget(parent)
PanelWidget(QStringLiteral("ToolPanel"), parent)
{
// FIXME: This won't work if there's ever more than one of this panel
setObjectName("ToolPanel");
Toolbar* t = new Toolbar(this);
t->SetTool(Core::instance()->tool());