summaryrefslogtreecommitdiffstats
path: root/examples/xml
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-05-03 00:15:15 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-05-11 15:29:43 +0000
commit5ece368fa0ef768de7f4d143d928a2f03cf7e2e9 (patch)
treee0095d153fee30fc054b47f5a9e7df076e0f9496 /examples/xml
parent26211cca19666e5cb6d85dbb895b04cc22d55a1a (diff)
QFlags::testFlag: clarify the behavior in the docs
The name made me fall in a trap: I thought that testFlag returned true if *any* of the bits in the argument were set in the QFlags object. In reality, it returns true if *all* the bits are set, and an argument equivalent to 0 is treated specially. Clarify this in the documentation. Change-Id: I9e8088c48038b4e6ba5830fdb7e473c6d7884b29 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 89f55f13fdae3aa52614b063ff6ceb8276340d44) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/xml')
0 files changed, 0 insertions, 0 deletions