153 const LayoutInfo::Type type = LayoutInfo::laidoutWidgetType(core, w, &managed, &layout);
154 const bool enabled = layout && managed &&
155 (type == LayoutInfo::HBox || type == LayoutInfo::VBox
156 || type == LayoutInfo::Grid);
160 const int index = layout->indexOf(w);
161 Q_ASSERT(index >= 0);
164 return layout->itemAt(index)->alignment();