Added type roles to the calculation if an item is equal to the given item values.

This commit is contained in:
2026-03-01 11:37:00 +01:00
parent c9d67ff2cc
commit 057bd244bd

View File

@ -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;