Fixed usage of C++ enums in QML.