mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 07:12:46 +01:00
game_list_p: Resolve deprecated usage of QVariant operator<
This is designated as obsolete in Qt's docs (see: https://doc.qt.io/qt-5/qvariant-obsolete.html#operator-lt)
This commit is contained in:
parent
f2f346e110
commit
c277d7d171
1 changed files with 2 additions and 1 deletions
|
@ -174,7 +174,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator<(const QStandardItem& other) const override {
|
bool operator<(const QStandardItem& other) const override {
|
||||||
return data(CompatNumberRole) < other.data(CompatNumberRole);
|
return data(CompatNumberRole).value<QString>() <
|
||||||
|
other.data(CompatNumberRole).value<QString>();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue