int QLayoutItemProto::heightForWidth(int w) const { QLayoutItem *item = qscriptvalue_cast<QLayoutItem*>(thisObject()); if (item) return item->heightForWidth(w); return 0; }