Added a ToStringRole to summarize the model items (for tool tip and QR code).

This commit is contained in:
2026-01-15 14:04:37 +01:00
parent c15e5425a7
commit caffa1c18a
4 changed files with 26 additions and 2 deletions

View File

@ -76,6 +76,8 @@ QVariant TableModel::data(const QModelIndex& index, int role) const {
case AmountRole:
case FactorRole:
return m_items.at(row)->data(role);
case ToStringRole:
return m_items.at(row)->toString();
}
return QVariant();