Fix a crash comparing dynamic enumerations to plain ints
The QVariant-based comparison expects relocatable, plain
types for comparison. qtbase/cbe886d1287bca3d32f10d669f52603fe28daac4
introduces an assert for this.
- Make the enums relocatable by using the underlying int's flags
- Change the constructors to only initialize the enum
- Remove the copy/move constructors and destructor
Fixes: QTBUG-146198
Change-Id: Ib729b82888817960c26906cc1b75538c3310a847
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>