QSizePolicy: Fix warning about mixing different enums
warning: C5054: operator '&': deprecated between enumerations of different types Pick-to: 5.15 Change-Id: I4e48a44f089d3eaca5d3f876da01335051192b28 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
be83b626d7
commit
09d3ebcce8
@ -109,8 +109,8 @@ public:
|
||||
void setControlType(ControlType type) noexcept;
|
||||
|
||||
constexpr Qt::Orientations expandingDirections() const noexcept {
|
||||
return ( (verticalPolicy() & ExpandFlag) ? Qt::Vertical : Qt::Orientations() )
|
||||
| ( (horizontalPolicy() & ExpandFlag) ? Qt::Horizontal : Qt::Orientations() ) ;
|
||||
return ( (verticalPolicy() & int(ExpandFlag)) ? Qt::Vertical : Qt::Orientations() )
|
||||
| ( (horizontalPolicy() & int(ExpandFlag)) ? Qt::Horizontal : Qt::Orientations() ) ;
|
||||
}
|
||||
|
||||
constexpr void setHeightForWidth(bool b) noexcept { bits.hfw = b; }
|
||||
|
Loading…
Reference in New Issue
Block a user