mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:20:05 +00:00
First pass fixes from discussions. Mostly linter fixes
This commit is contained in:
parent
91b4d6c2c2
commit
dc284974b3
14 changed files with 107 additions and 74 deletions
|
|
@ -129,7 +129,20 @@ QVariant MarkerModel::data(const QModelIndex& index, int role) const
|
|||
break;
|
||||
break;
|
||||
case static_cast<int>(Column::Icon):
|
||||
if (role == Qt::ItemDataRole::DecorationRole)
|
||||
if (role == Qt::ItemDataRole::DisplayRole)
|
||||
{
|
||||
std::optional<types::MarkerIconInfo> icon =
|
||||
p->markerManager_->get_icon(markerInfo->iconName);
|
||||
if (icon)
|
||||
{
|
||||
return QString::fromStdString(icon->shortName);
|
||||
}
|
||||
else
|
||||
{
|
||||
return {};
|
||||
}
|
||||
}
|
||||
else if (role == Qt::ItemDataRole::DecorationRole)
|
||||
{
|
||||
std::optional<types::MarkerIconInfo> icon =
|
||||
p->markerManager_->get_icon(markerInfo->iconName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue