From 4f5c919706fb684e545c2445aa34df5323c0a1b1 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Sun, 12 May 2019 15:26:57 +0200 Subject: [PATCH] QskLayoutConstraint::Type as bits --- src/layouts/QskLayoutConstraint.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layouts/QskLayoutConstraint.h b/src/layouts/QskLayoutConstraint.h index 7a567764..13f3ce97 100644 --- a/src/layouts/QskLayoutConstraint.h +++ b/src/layouts/QskLayoutConstraint.h @@ -22,10 +22,10 @@ namespace QskLayoutConstraint { enum Type { - Unconstrained, + Unconstrained = 0, - WidthForHeight, - HeightForWidth + WidthForHeight = 1 << 0, + HeightForWidth = 1 << 1 }; QSK_EXPORT qreal heightForWidth( const QQuickItem*, qreal width );