Rename layoutWidget variable/method name to layout

It's a controller, so don't suffix it with Widget/View
This commit is contained in:
Sergio Martins
2022-05-15 21:12:01 +01:00
parent 378f380968
commit 97baed0ef9
20 changed files with 97 additions and 98 deletions

View File

@@ -155,8 +155,7 @@ bool Frame_qtwidgets::event(QEvent *e)
if (e->type() == QEvent::ParentChange) {
auto p = parentView();
// qDebug() << "Parent change" << p->asQObject() << p->asLayoutWidget() << int(p->type());
m_controller->setLayoutWidget(p ? p->asLayout() : nullptr);
m_controller->setLayout(p ? p->asLayout() : nullptr);
}
return QWidget::event(e);