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:
Dentomologist
2026-04-18 14:17:35 -07:00
committed by GitHub
+2
View File
@@ -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);
}