aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--launcher/ui/widgets/ProjectItem.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/launcher/ui/widgets/ProjectItem.cpp b/launcher/ui/widgets/ProjectItem.cpp
index 0b00a9bd..0085d6b2 100644
--- a/launcher/ui/widgets/ProjectItem.cpp
+++ b/launcher/ui/widgets/ProjectItem.cpp
@@ -65,15 +65,15 @@ void ProjectItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& o
font.setUnderline(true);
}
if (index.data(UserDataTypes::INSTALLED).toBool()) {
- auto rect = opt.rect;
- rect.setX(rect.x() + 1);
- rect.setY(rect.y() + 1);
- rect.setHeight(rect.height() - 2);
- rect.setWidth(rect.width() - 2);
+ 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(rect);
+ painter->drawRect(hRect);
}
font.setPointSize(font.pointSize() + 2);