using QskLayoutConstraint

This commit is contained in:
Uwe Rathmann 2019-09-01 13:01:01 +02:00
parent 4e2e2ce30e
commit a93c263c87

View File

@ -33,10 +33,8 @@ QSK_SYSTEM_STATE( QskControl, Disabled, QskAspect::FirstSystemState )
QSK_SYSTEM_STATE( QskControl, Hovered, QskAspect::LastSystemState >> 1 ) QSK_SYSTEM_STATE( QskControl, Hovered, QskAspect::LastSystemState >> 1 )
QSK_SYSTEM_STATE( QskControl, Focused, QskAspect::LastSystemState ) QSK_SYSTEM_STATE( QskControl, Focused, QskAspect::LastSystemState )
// QGridLayoutEngine internally uses FLT_MAX static QSizeF qskDefaultSizeHints[] =
static constexpr qreal qskSizeHintMax = std::numeric_limits< float >::max(); { { 0, 0 }, { -1, -1 }, { QskLayoutConstraint::unlimited, QskLayoutConstraint::unlimited } };
static QSizeF qskDefaultSizeHints[ 3 ] =
{ { 0, 0 }, { -1, -1 }, { qskSizeHintMax, qskSizeHintMax } };
typedef quint16 controlFlags_t; typedef quint16 controlFlags_t;