Qt: Reenable WinPanel style for patches

Partial revert of 7eb2b07.

Looks much worse in Fusion/default style.
This commit is contained in:
Stenzek 2025-07-13 15:33:20 +10:00
parent 97a0f4669f
commit 792b72b955
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,6 @@ void GamePatchSettingsWidget::reloadList()
if (!patches.empty()) if (!patches.empty())
{ {
m_ui.scrollArea->setFrameStyle(QFrame::WinPanel | QFrame::Sunken);
layout->setContentsMargins(0, 0, 0, 0); layout->setContentsMargins(0, 0, 0, 0);
bool first = true; bool first = true;
@ -117,8 +116,6 @@ void GamePatchSettingsWidget::reloadList()
} }
else else
{ {
m_ui.scrollArea->setFrameStyle(QFrame::NoFrame);
QLabel* label = new QLabel(tr("No patches are available for this game."), container); QLabel* label = new QLabel(tr("No patches are available for this game."), container);
QFont font(label->font()); QFont font(label->font());
font.setPointSizeF(font.pointSizeF() + 2.0f); font.setPointSizeF(font.pointSizeF() + 2.0f);

View File

@ -25,6 +25,9 @@
</property> </property>
<item> <item>
<widget class="QScrollArea" name="scrollArea"> <widget class="QScrollArea" name="scrollArea">
<property name="frameShape">
<enum>QFrame::Shape::WinPanel</enum>
</property>
<property name="horizontalScrollBarPolicy"> <property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum> <enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum>
</property> </property>