51 static const char comma[] =
", ";
52 return QByteArray(
"QSizePolicy(")
53 + Internal::toString(sp.horizontalPolicy()) + comma
54 + Internal::toString(sp.verticalPolicy()) + comma
55 + QByteArray::number(sp.horizontalStretch()) + comma
56 + QByteArray::number(sp.verticalStretch()) + comma
57 + Internal::toString(QSizePolicy::ControlTypes(sp.controlType())) + comma
58 +
"height for width: " + (sp.hasHeightForWidth() ?
"yes" :
"no") + comma
59 +
"width for height: " + (sp.hasWidthForHeight() ?
"yes" :
"no") + comma
60 + (sp.retainSizeWhenHidden() ?
"" :
"don't " ) +
"retain size when hidden"