From 057bd244bd516ae7487cee49bb0d03cb83fdbc33 Mon Sep 17 00:00:00 2001 From: Bent Witthold Date: Sun, 1 Mar 2026 11:37:00 +0100 Subject: [PATCH] Added type roles to the calculation if an item is equal to the given item values. --- model/tablemodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/model/tablemodel.cpp b/model/tablemodel.cpp index 711eb29..3e18448 100644 --- a/model/tablemodel.cpp +++ b/model/tablemodel.cpp @@ -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;