Added type roles to the calculation if an item is equal to the given item values.
This commit is contained in:
@ -369,6 +369,10 @@ bool TableModel::isItemEqualToItemValues(const QModelIndex& itemIndex,
|
||||
if (valueOfItem.toString() != givenValue.toString()) {
|
||||
return false;
|
||||
}
|
||||
} else if (TYPE_ROLES.contains(role)) {
|
||||
if (valueOfItem.toString() != givenValue.toString()) {
|
||||
return false;
|
||||
}
|
||||
} else if (INT_ROLES.contains(role)) {
|
||||
if (valueOfItem.toInt() != givenValue.toInt()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user