Currently enumerations can only be defined on c++ side and exposed
for use on QML side. This is a problematic limitation for the Qt Components
implementation work. QML needs to allow enum types to be defined on
QML side too.
Ideally the implementation should also allow the use of enums as bit flags,
as demonstrated by the MouseArea's acceptedButtons property: