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