diff options
author | Sebastian Rüth <sebastian.rueth@protonmail.com> | 2022-10-18 15:14:00 +0200 |
---|---|---|
committer | Sebastian Rüth <sebastian.rueth@protonmail.com> | 2022-10-19 20:12:50 +0200 |
commit | 50bbf2aacce0e525b8af8956aeffe0fdecd44b5c (patch) | |
tree | d4fe107966a87bb8c55850c9efd690d42f01bad8 /launcher | |
parent | 2b7b9a2abb512f48399ff91d854eb68fccdc6f37 (diff) | |
download | PrismLauncher-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.cpp | 4 |
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(); |