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>
commit9c0fe403551bbb868e8ede053a78f43a8c2d8fba
parent44a96eec32b723b4aab93f0ed861116f36e8dc20
authorFriedemann Kleint <Friedemann.Kleint@qt.io>
committerFriedemann Kleint <Friedemann.Kleint@qt.io>
commit timeThu, 7 May 2026 06:58:38 +0000