diff options
author | DioEgizio <83089242+DioEgizio@users.noreply.github.com> | 2023-06-16 09:56:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-16 09:56:51 +0200 |
commit | 412349ac58be5729b72a80c2cc0b7f5342667fea (patch) | |
tree | 1a107e14453369bef323eaad82845f90e056eb8d /launcher/ui/widgets/ProjectItem.cpp | |
parent | 000f4386a2416c8cc2ae4871ea4aeaedd9a65e1a (diff) | |
parent | 98a07da39bbc41529b67cf515849d403280af07c (diff) | |
download | PrismLauncher-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.cpp | 11 |
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); |