From 7cdcc267220db301080e7ade8e2f21e530e77b82 Mon Sep 17 00:00:00 2001 From: Jan-Arve Saether Date: Wed, 23 May 2012 14:58:55 +0200 Subject: Fix Qt 5 todo issues for QSizePolicy. * Merge the two public ctors. * Use bitflags instead of shifting bits (more readable). * Add autotest * Use int datatype for the "stretch setters". (values out of bounds are clamped) Streaming to QDataStream will still use the Qt 4 format. Task-number: QTBUG-25100 Change-Id: Iecb1e78cb12717e4d84448484c3ad8ca469d571a Reviewed-by: Paul Olav Tvete --- src/widgets/kernel/qsizepolicy.qdoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/widgets/kernel/qsizepolicy.qdoc') diff --git a/src/widgets/kernel/qsizepolicy.qdoc b/src/widgets/kernel/qsizepolicy.qdoc index 670491e5dd..3c7d1e858e 100644 --- a/src/widgets/kernel/qsizepolicy.qdoc +++ b/src/widgets/kernel/qsizepolicy.qdoc @@ -319,19 +319,19 @@ */ /*! - \fn void QSizePolicy::setHorizontalStretch(uchar stretchFactor) + \fn void QSizePolicy::setHorizontalStretch(int stretchFactor) Sets the horizontal stretch factor of the size policy to the given \a - stretchFactor. + stretchFactor. \a stretchFactor must be in the range [0,255]. \sa horizontalStretch(), setVerticalStretch(), setHorizontalPolicy() */ /*! - \fn void QSizePolicy::setVerticalStretch(uchar stretchFactor) + \fn void QSizePolicy::setVerticalStretch(int stretchFactor) Sets the vertical stretch factor of the size policy to the given - \a stretchFactor. + \a stretchFactor. \a stretchFactor must be in the range [0,255]. \sa verticalStretch(), setHorizontalStretch(), setVerticalPolicy() */ -- cgit v1.2.3