Use data role to get marker id for location marker dialog.

This commit is contained in:
AdenKoperczak 2025-04-04 19:46:05 -04:00
parent b2e4215ea8
commit 9c16a88b63
2 changed files with 13 additions and 13 deletions

View file

@ -100,6 +100,11 @@ QVariant MarkerModel::data(const QModelIndex& index, int role) const
return QVariant();
}
if (role == Qt::ItemDataRole::UserRole)
{
return qulonglong(id);
}
switch(index.column())
{
case static_cast<int>(Column::Name):