diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/qscreen/propertyfield.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/manual/qscreen/propertyfield.cpp b/tests/manual/qscreen/propertyfield.cpp index 94a85545fb..bd78e7eef3 100644 --- a/tests/manual/qscreen/propertyfield.cpp +++ b/tests/manual/qscreen/propertyfield.cpp @@ -44,6 +44,9 @@ PropertyField::PropertyField(QObject* subject, const QMetaProperty& prop, QWidge QString PropertyField::valueToString(QVariant val) { + if (m_prop.isEnumType()) + return QString::fromUtf8(m_prop.enumerator().key(val.toInt())); + QString text; switch (val.type()) { case QVariant::Double: |