mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-07-11 01:24:22 +02:00
Merge pull request #14604 from cristian64/fusion_qgroupbox_style_qt660
DolphinQt: Use custom style for `QGroupBox` only with Qt 6.6.0+.
This commit is contained in:
@@ -384,6 +384,7 @@ void Settings::ApplyStyle()
|
||||
stylesheet_contents.append(QStringLiteral("%1").arg(tooltip_stylesheet));
|
||||
}
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
|
||||
// For Fusion, define group box style if not already defined.
|
||||
if (style_name.compare(QStringLiteral("fusion"), Qt::CaseInsensitive) == 0 &&
|
||||
!stylesheet_contents.contains(QStringLiteral("QGroupBox")))
|
||||
@@ -403,6 +404,7 @@ void Settings::ApplyStyle()
|
||||
" min-width: 0;"
|
||||
"}"));
|
||||
}
|
||||
#endif
|
||||
|
||||
qApp->setStyleSheet(stylesheet_contents);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user