summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qhashfunctions.h
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-05-02 00:51:06 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-05-11 13:22:44 +0200
commite906bb84fba0311b5bc1ec1344dc70ca34981194 (patch)
tree76c4f654b86befa8ccf8f1c85e182eb0a20e5e2b /src/corelib/tools/qhashfunctions.h
parentf385b8827a75688b8a2cbd51e8da8a602d7f9567 (diff)
QFlags: add (named) explicit conversion from/to int
There are some use cases where one may want to convert a QFlags object from/to an integer deliberately; for instance, to store it in a bitfield, saving some space. So far this worked by means of a implicit conversions; instead, also add named conversions for this. [ChangeLog][QtCore][QFlags] Added the fromInt() and toInt() functions for explicit conversions from/to a plain integer. Change-Id: I705559bf75b28c30b4446bb6d0753aedfc808eed Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qhashfunctions.h')
0 files changed, 0 insertions, 0 deletions