summaryrefslogtreecommitdiffstats
path: root/src/network/doc/snippets/code
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2017-02-22 09:43:10 +0100
committerMarc Mutz <marc.mutz@kdab.com>2017-02-27 23:09:27 +0000
commit49c558eb0db3ec544fface24939a16f92d794987 (patch)
tree1f74606d4163c31507316d31ff3d23d32c44f4bf /src/network/doc/snippets/code
parentbc641ad9f8ba3ea65dc400aa2f6520b4a5d5434d (diff)
QSizePolicy: inline toControlTypeFieldValue()
The implementation now uses the relaxed-constexpr qCountTrailingZeroBits() function from QtAlgorithms, making the QSizePolicy(Policy, Policy, ControlType) constructor constexpr on C++14 compilers. The explicit check for DefaultType remains to keep the constructor C++11-constexpr when called with just (Policy, Policy). Extend the constExpr tests a bit. Change-Id: I59690f0921d9bdee08e3615d0d1f4a9b92870c32 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/network/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions