PowerLevelModel: Use Qt::UserRole for role value

Otherwise it's equal to Qt::DecorationRole, which QAbstractItemModelTester expects to be convertible to certain types
This commit is contained in:
Tobias Fella
2025-08-04 23:07:12 +02:00
committed by Tobias Fella
parent 9ad64b990d
commit 971875c8a2

View File

@@ -74,7 +74,7 @@ public:
*/
enum Roles {
NameRole = Qt::DisplayRole, /**< The power level name. */
ValueRole, /**< The power level value. */
ValueRole = Qt::UserRole, /**< The power level value. */
};
Q_ENUM(Roles)