Gem Catalog Allows Filtering by Gem Selected Status Live (#1274)

This commit is contained in:
AMZN-nggieber
2021-06-14 15:56:54 -07:00
committed by GitHub
parent 0d45ec806c
commit 948075fa61
10 changed files with 179 additions and 32 deletions
@@ -235,4 +235,19 @@ namespace O3DE::ProjectManager
}
return result;
}
int GemModel::TotalAddedGems() const
{
int result = 0;
for (int row = 0; row < rowCount(); ++row)
{
const QModelIndex modelIndex = index(row, 0);
if (IsAdded(modelIndex))
{
++result;
}
}
return result;
}
} // namespace O3DE::ProjectManager