aboutsummaryrefslogtreecommitdiff
path: root/launcher/VersionProxyModel.cpp
diff options
context:
space:
mode:
authorPandaNinjas <admin@malwarefight.wip.la>2023-07-06 08:51:42 -0400
committerGitHub <noreply@github.com>2023-07-06 08:51:42 -0400
commit13d67c6524a29daea51242d17ba0c6a2b8593747 (patch)
tree9dc3bdaebedc34927b189020a2a95ee4dc0c03fe /launcher/VersionProxyModel.cpp
parent817ecf822583caf3a510f177d40fe8c6b3218165 (diff)
downloadPrismLauncher-13d67c6524a29daea51242d17ba0c6a2b8593747.tar.gz
PrismLauncher-13d67c6524a29daea51242d17ba0c6a2b8593747.tar.bz2
PrismLauncher-13d67c6524a29daea51242d17ba0c6a2b8593747.zip
Keep formatting consistent
Signed-off-by: PandaNinjas <admin@malwarefight.wip.la>
Diffstat (limited to 'launcher/VersionProxyModel.cpp')
-rw-r--r--launcher/VersionProxyModel.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/launcher/VersionProxyModel.cpp b/launcher/VersionProxyModel.cpp
index 91f94f41..63a43465 100644
--- a/launcher/VersionProxyModel.cpp
+++ b/launcher/VersionProxyModel.cpp
@@ -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");
}
}