QVariant: Convert automatically from enum types to integral types.
authorOlivier Goffart <ogoffart@woboq.com>
Sun, 3 Nov 2013 13:17:15 +0000 (14:17 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 8 Nov 2013 15:45:26 +0000 (16:45 +0100)
commit34d21610ba72ea775d47619c08086f8bb0e7160b
tree4e2e0190af953324fadd01f73a6b5b4e95206a2d
parent2ee97f505b29a8539685885a239477d4417cc76a
QVariant: Convert automatically from enum types to integral types.

[ChangeLog][QtCore][QVariant] Variant containing enum types can now
be converted to integer

Change-Id: Ibbbc9ae29ab45d67c582fa2d406afc19c5dc41ce
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
src/corelib/kernel/qvariant.cpp
tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp