aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/widgets/ProjectItem.cpp
diff options
context:
space:
mode:
authorDioEgizio <83089242+DioEgizio@users.noreply.github.com>2023-06-16 09:56:51 +0200
committerGitHub <noreply@github.com>2023-06-16 09:56:51 +0200
commit412349ac58be5729b72a80c2cc0b7f5342667fea (patch)
tree1a107e14453369bef323eaad82845f90e056eb8d /launcher/ui/widgets/ProjectItem.cpp
parent000f4386a2416c8cc2ae4871ea4aeaedd9a65e1a (diff)
parent98a07da39bbc41529b67cf515849d403280af07c (diff)
downloadPrismLauncher-412349ac58be5729b72a80c2cc0b7f5342667fea.tar.gz
PrismLauncher-412349ac58be5729b72a80c2cc0b7f5342667fea.tar.bz2
PrismLauncher-412349ac58be5729b72a80c2cc0b7f5342667fea.zip
Merge pull request #1135 from Trial97/installed_mods
Diffstat (limited to 'launcher/ui/widgets/ProjectItem.cpp')
-rw-r--r--launcher/ui/widgets/ProjectItem.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/launcher/ui/widgets/ProjectItem.cpp b/launcher/ui/widgets/ProjectItem.cpp
index d1ff9dbc..0085d6b2 100644
--- a/launcher/ui/widgets/ProjectItem.cpp
+++ b/launcher/ui/widgets/ProjectItem.cpp
@@ -64,6 +64,17 @@ void ProjectItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& o
font.setBold(true);
font.setUnderline(true);
}
+ if (index.data(UserDataTypes::INSTALLED).toBool()) {
+ auto hRect = opt.rect;
+ hRect.setX(hRect.x() + 1);
+ hRect.setY(hRect.y() + 1);
+ hRect.setHeight(hRect.height() - 2);
+ hRect.setWidth(hRect.width() - 2);
+ // Set nice font
+ font.setItalic(true);
+ font.setOverline(true);
+ painter->drawRect(hRect);
+ }
font.setPointSize(font.pointSize() + 2);
painter->setFont(font);