diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2021-05-03 01:20:55 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2021-05-15 17:34:01 +0200 |
commit | c4947c1c4c0d518197329cf019b04cff4e676541 (patch) | |
tree | ed72cc1df4689fc2242f4b320513cafbdb1830b3 /tests/auto/gui/painting/qpdfwriter/tst_qpdfwriter.cpp | |
parent | 78e6b54cdea325cd925603cbfa9e76c00db3db92 (diff) |
QFlags: add test(Any)Flag(s)
QFlags was lacking a named function for testing whether a QFlags object
contains _any_ of the bits set by a given enumerator/other QFlags.
Drive-by, add testFlags taking a QFlags, not just an object of the
enumeration; and simplify the implementation of testFlags to more
closely follow what its documentation says it does.
[ChangeLog][QtCore][QFlags] The testFlags, testAnyFlag and
testAnyFlags functions have been added.
Change-Id: Ie8688c8b0dd393d34d32bc7786cdcee3eba24d1c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/gui/painting/qpdfwriter/tst_qpdfwriter.cpp')
0 files changed, 0 insertions, 0 deletions