Commit eab25187 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

QmlJSDebugger: Fixed the enum toString methods

Should use valueToKey since the key method works by index.
parent 42b4e6c8
......@@ -77,12 +77,12 @@ public:
static inline QString toString(Message message)
{
return staticMetaObject.enumerator(0).key(message);
return staticMetaObject.enumerator(0).valueToKey(message);
}
static inline QString toString(Tool tool)
{
return staticMetaObject.enumerator(1).key(tool);
return staticMetaObject.enumerator(1).valueToKey(tool);
}
};
......
Markdown is supported
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