diff options
author | Arno Rehn <a.rehn@menlosystems.com> | 2019-01-14 15:31:57 +0100 |
---|---|---|
committer | Arno Rehn <a.rehn@menlosystems.com> | 2019-01-31 08:19:11 +0000 |
commit | 38f097ba76fe5b26ccc15a5599e312336200e564 (patch) | |
tree | 45cca5f4d81fcce5b1f41c09330f7f17605f57ed /.gitignore | |
parent | c80cbce7ac3b38a45a38b57795c7eb19e5177a17 (diff) |
Correctly convert enums and QFlags from and to JSON
Previously, enums declared with Q_ENUM were stringified in the
conversion to JSON and QFlags did not work at all. The conversion of
QJsonValue(int) to enum worked fine, however. This patch implements
some extra logic for detecting enums and QFlags, thus correctly
converting to and from integers.
[ChangeLog] Enum values and QFlags are now correctly converted to and
from integers in the JS interface
Fixes: QTBUG-72924
Change-Id: I23d4a1120b805201c8d450edbd990aad5ad258a2
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions