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:
committed by
Tobias Fella
parent
9ad64b990d
commit
971875c8a2
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user