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:
|
case Qt::ToolTipRole:
|
||||||
{
|
{
|
||||||
if (column == Name && hasRecommended) {
|
if(column == Name && hasRecommended)
|
||||||
|
{
|
||||||
auto value = sourceModel()->data(parentIndex, BaseVersionList::RecommendedRole);
|
auto value = sourceModel()->data(parentIndex, BaseVersionList::RecommendedRole);
|
||||||
if (value.toBool()) {
|
if(value.toBool())
|
||||||
|
{
|
||||||
return tr("Recommended");
|
return tr("Recommended");
|
||||||
} else if(hasLatest) {
|
} else if(hasLatest) {
|
||||||
auto value = sourceModel()->data(parentIndex, BaseVersionList::LatestRole);
|
auto value = sourceModel()->data(parentIndex, BaseVersionList::LatestRole);
|
||||||
if(value.toBool()) {
|
if(value.toBool())
|
||||||
|
{
|
||||||
return tr("Latest");
|
return tr("Latest");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user