diff options
Diffstat (limited to 'src/widgets/kernel/qsizepolicy.h')
-rw-r--r-- | src/widgets/kernel/qsizepolicy.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/widgets/kernel/qsizepolicy.h b/src/widgets/kernel/qsizepolicy.h index 9c6d67410a..8c3724affb 100644 --- a/src/widgets/kernel/qsizepolicy.h +++ b/src/widgets/kernel/qsizepolicy.h @@ -144,17 +144,18 @@ private: #endif QSizePolicy(int i) : data(i) { } + struct Bits { + quint32 horStretch : 8; + quint32 verStretch : 8; + quint32 horPolicy : 4; + quint32 verPolicy : 4; + quint32 ctype : 5; + quint32 hfw : 1; + quint32 wfh : 1; + quint32 retainSizeWhenHidden : 1; + }; union { - struct { - quint32 horStretch : 8; - quint32 verStretch : 8; - quint32 horPolicy : 4; - quint32 verPolicy : 4; - quint32 ctype : 5; - quint32 hfw : 1; - quint32 wfh : 1; - quint32 retainSizeWhenHidden : 1; - } bits; + Bits bits; quint32 data; }; }; |