Rename layoutWidget variable/method name to layout
It's a controller, so don't suffix it with Widget/View
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user