Commit 194a56ea authored by Thiago Macieira's avatar Thiago Macieira Committed by Olivier Goffart (Woboq GmbH)
Browse files

QTest: Fix printing of values of Q_ENUMs


QMetaEnum::key(n) returns the n-th key, which is not necessarily the one
of value n. For the key of value n, we want QMetaEnum::valueToKey(n).

Change-Id: Ic90fe6b1cbe84978a02fffff141bf4a06074917a
Reviewed-by: default avatarOlivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
parent 9ba296cc
No related merge requests found
Showing with 12 additions and 11 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment