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