Qt 3 Support Members for QSizePolicyThe following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code. Public Types
Public Functions
Member Type Documentationenum QSizePolicy::ExpandDataUse the Qt::Orientations enum instead.
typedef QSizePolicy::SizeTypeUse the QSizePolicy::Policy enum instead. Member Function DocumentationQSizePolicy::QSizePolicy ( Policy horizontal, Policy vertical, bool dependent )Use the QSizePolicy() constructor and the setHeightForWidth() function instead. For example, if you have code like QSizePolicy *policy = new QSizePolicy(horizontal, vertical, dependent); you can rewrite it as QSizePolicy *policy = new QSizePolicy(horizontal, vertical); policy->setHeightForWidth(dependent); QSizePolicy::QSizePolicy ( Policy horizontal, Policy vertical, uchar horizontalStretch, uchar verticalStretch, bool dependent = false )Use the QSizePolicy() constructor and call the setHorizontalStretch(), setVerticalStretch(), and setHeightForWidth() functions instead. For example, if you have code like QSizePolicy *policy = new QSizePolicy(horizontal, vertical, horizontalStretch, verticalStretch, dependent); you can rewrite it as QSizePolicy *policy = new QSizePolicy(horizontal, vertical); policy->setHorizontalStretch(horizontalStretch); policy->setVerticalStretch(verticalStretch); policy->setHeightForWidth(dependent); Qt::Orientations QSizePolicy::expanding () constUse expandingDirections() instead. Policy QSizePolicy::horData () constUse horizontalPolicy() instead. See also setHorData(). uint QSizePolicy::horStretch () constUse horizontalStretch() instead. See also setHorStretch(). bool QSizePolicy::mayGrowHorizontally () constUse the horizontalPolicy() function combined with the QSizePolicy::PolicyFlag enum instead. For example, if you have code like bool policy = mayGrowHorizontally(); you can rewrite it as bool policy = horizontalPolicy() & QSizePolicy::GrowFlag; bool QSizePolicy::mayGrowVertically () constUse the verticalPolicy() function combined with the QSizePolicy::PolicyFlag enum instead. For example, if you have code like bool policy = mayGrowVertically(); you can rewrite it as bool policy = verticalPolicy() & QSizePolicy::GrowFlag; bool QSizePolicy::mayShrinkHorizontally () constUse the horizontalPolicy() function combined with the QSizePolicy::PolicyFlag enum instead. For example, if you have code like bool policy = mayShrinkHorizontally(); you can rewrite it as bool policy = horizontalPolicy() & QSizePolicy::ShrinkFlag; bool QSizePolicy::mayShrinkVertically () constUse the verticalPolicy() function combined with the QSizePolicy::PolicyFlag enum instead. For example, if you have code like bool policy = mayShrinkVertically(); you can rewrite it as bool policy = verticalPolicy() & QSizePolicy::ShrinkFlag; void QSizePolicy::setHorData ( Policy policy )Use setHorizontalPolicy() instead. See also horData(). void QSizePolicy::setHorStretch ( uchar stretch )Use setHorizontalStretch() instead. See also horStretch(). void QSizePolicy::setVerData ( Policy policy )Use setVerticalPolicy() instead. See also verData(). void QSizePolicy::setVerStretch ( uchar stretch )Use setVerticalStretch() instead. See also verStretch(). Policy QSizePolicy::verData () constUse verticalPolicy() instead. See also setVerData(). uint QSizePolicy::verStretch () constUse verticalStretch() instead. See also setVerStretch().
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |