aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorSebastian Rüth <sebastian.rueth@protonmail.com>2022-10-18 15:14:00 +0200
committerSebastian Rüth <sebastian.rueth@protonmail.com>2022-10-19 20:12:50 +0200
commit50bbf2aacce0e525b8af8956aeffe0fdecd44b5c (patch)
treed4fe107966a87bb8c55850c9efd690d42f01bad8 /launcher
parent2b7b9a2abb512f48399ff91d854eb68fccdc6f37 (diff)
downloadPrismLauncher-50bbf2aacce0e525b8af8956aeffe0fdecd44b5c.tar.gz
PrismLauncher-50bbf2aacce0e525b8af8956aeffe0fdecd44b5c.tar.bz2
PrismLauncher-50bbf2aacce0e525b8af8956aeffe0fdecd44b5c.zip
fix text clipping
Signed-off-by: Sebastian Rüth <sebastian.rueth@protonmail.com>
Diffstat (limited to 'launcher')
-rw-r--r--launcher/ui/widgets/ProjectItem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/ui/widgets/ProjectItem.cpp b/launcher/ui/widgets/ProjectItem.cpp
index 01be88d9..93d3fca1 100644
--- a/launcher/ui/widgets/ProjectItem.cpp
+++ b/launcher/ui/widgets/ProjectItem.cpp
@@ -91,8 +91,8 @@ void ProjectItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& o
}
// On the bottom, aligned to the left after the icon, and featuring at most two lines of text (with some margin space to spare)
- painter->drawText(rect.x(), rect.y() + rect.height() - 2.2 * opt.fontMetrics.height(), remaining_width,
- 2 * opt.fontMetrics.height(), Qt::TextWordWrap, description);
+ painter->drawText(rect.x(), rect.y() + rect.height() - 2.0 * opt.fontMetrics.height(), remaining_width,
+ 4 * opt.fontMetrics.height(), Qt::TextWordWrap, description);
}
painter->restore();