QFlags: use unsigned int when the enum's underlying is unsigned
authorMarc Mutz <marc.mutz@kdab.com>
Thu, 20 Sep 2012 13:06:11 +0000 (15:06 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 28 Sep 2012 21:50:10 +0000 (23:50 +0200)
commitac9be327f8dc788a964b77c6bcdf0391c85c9cbd
treee7f66c52a02cf1a8c260c47d1bba0d400acad82a
parent26f238a80d38d6e1da0a6d485dd0b185b73c46ef
QFlags: use unsigned int when the enum's underlying is unsigned

Replace storage and operator int() return types with unsigned int
if the enum is unsigned.

This fixes a number of exisiting warnings, in particular with
Qt::MouseButton under GCC.

Change-Id: Ia12d36212329aec3e9d62a5fbd38809a6c2b36d0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
dist/changes-5.0.0
src/corelib/global/qflags.h
src/corelib/global/qglobal.cpp
tests/auto/corelib/global/qflags/tst_qflags.cpp