mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-19 19:15:26 +00:00
Qt: Fix multi package install dialog on Linux
This commit is contained in:
parent
16036e0419
commit
e4d84e2c1c
1 changed files with 0 additions and 8 deletions
|
@ -38,12 +38,7 @@ public:
|
|||
|
||||
// Adjust our painter parameters with some magic that looks good.
|
||||
// This is necessary so that we don't draw on top of the optional widget.
|
||||
// If you're not happy with this code don't hesitate to contact Megamouse
|
||||
#ifdef __linux__
|
||||
static constexpr int margin_adjustement = 12;
|
||||
#else
|
||||
static constexpr int margin_adjustement = 4;
|
||||
#endif
|
||||
|
||||
const int margin = (option.rect.height() - opt.fontMetrics.height() - margin_adjustement);
|
||||
QRect text_rect = style->subElementRect(QStyle::SE_ItemViewItemText, &opt, nullptr);
|
||||
|
@ -56,10 +51,7 @@ public:
|
|||
text_rect.setTop(text_rect.top() + margin);
|
||||
|
||||
painter->translate(text_rect.topLeft());
|
||||
|
||||
#ifndef __linux__
|
||||
painter->setClipRect(text_rect.translated(-text_rect.topLeft()));
|
||||
#endif
|
||||
|
||||
// Create a context for our painter
|
||||
QAbstractTextDocumentLayout::PaintContext context;
|
||||
|
|
Loading…
Add table
Reference in a new issue