Skip to content

Commit

Permalink
fix warning reg. obsolete operator < for QVariants
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Apr 11, 2020
1 parent 17041e8 commit 0d413cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mscore/editdrumset.cpp
Expand Up @@ -69,7 +69,7 @@ NoteHead::Group noteHeadNames[] = {
bool EditDrumsetTreeWidgetItem::operator<(const QTreeWidgetItem & other) const
{
if (treeWidget()->sortColumn() == Column::PITCH)
return data(Column::PITCH, Qt::UserRole) < other.data(Column::PITCH, Qt::UserRole);
return data(Column::PITCH, Qt::UserRole).toInt() < other.data(Column::PITCH, Qt::UserRole).toInt();
else
return QTreeWidgetItem::operator<(other);
}
Expand Down

0 comments on commit 0d413cd

Please sign in to comment.