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()) {
|
if (valueOfItem.toString() != givenValue.toString()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
} else if (TYPE_ROLES.contains(role)) {
|
||||||
|
if (valueOfItem.toString() != givenValue.toString()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
} else if (INT_ROLES.contains(role)) {
|
} else if (INT_ROLES.contains(role)) {
|
||||||
if (valueOfItem.toInt() != givenValue.toInt()) {
|
if (valueOfItem.toInt() != givenValue.toInt()) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user