Keep formatting consistent
Signed-off-by: PandaNinjas <admin@malwarefight.wip.la>
This commit is contained in:
parent
817ecf8225
commit
13d67c6524
@ -193,13 +193,16 @@ QVariant VersionProxyModel::data(const QModelIndex &index, int role) const
|
||||
}
|
||||
case Qt::ToolTipRole:
|
||||
{
|
||||
if (column == Name && hasRecommended) {
|
||||
if(column == Name && hasRecommended)
|
||||
{
|
||||
auto value = sourceModel()->data(parentIndex, BaseVersionList::RecommendedRole);
|
||||
if (value.toBool()) {
|
||||
if(value.toBool())
|
||||
{
|
||||
return tr("Recommended");
|
||||
} else if(hasLatest) {
|
||||
auto value = sourceModel()->data(parentIndex, BaseVersionList::LatestRole);
|
||||
if(value.toBool()) {
|
||||
if(value.toBool())
|
||||
{
|
||||
return tr("Latest");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user