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
@@ -35,11 +35,8 @@
OLIVE_NAMESPACE_ENTER
ProjectPanel::ProjectPanel(QWidget *parent) :
PanelWidget(parent)
PanelWidget(QStringLiteral("ProjectPanel"), parent)
{
// FIXME: This won't work if there's ever more than one of this panel
setObjectName("ProjectPanel");
// Create main widget and its layout
QWidget* central_widget = new QWidget(this);
QVBoxLayout* layout = new QVBoxLayout(central_widget);