26 if (!object->isWidgetType() || iid != Q_TYPEID(QDesignerLayoutDecorationExtension))
31 if (
const QLayoutWidget *layoutWidget = qobject_cast<
const QLayoutWidget*>(widget))
32 return QLayoutSupport::createLayoutSupport(layoutWidget->formWindow(), widget, parent);
34 if (QDesignerFormWindowInterface *fw = QDesignerFormWindowInterface::findFormWindow(widget))
35 if (LayoutInfo::managedLayout(fw->core(), widget))
36 return QLayoutSupport::createLayoutSupport(fw, widget, parent);