Core: Explicitly detach QPalette in WelcomePageHelpers

Workaround for QPalette behavior change Qt 6.2.2 -> 6.2.3

Task-number: QTBUG-100439
Fixes: QTCREATORBUG-26981
Change-Id: If28195023929baf7dfeb2b0196c8339b84658488
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Alessandro Portale
2022-02-02 17:35:58 +01:00
parent 270d448eb1
commit a8a1f036cd
2 changed files with 5 additions and 1 deletions

View File

@@ -66,6 +66,9 @@ IWelcomePage::~IWelcomePage()
QPalette WelcomePageFrame::buttonPalette(bool isActive, bool isCursorInside, bool forText)
{
QPalette pal;
pal.setBrush(QPalette::Window, {});
pal.setBrush(QPalette::WindowText, {});
Theme *theme = Utils::creatorTheme();
if (isActive) {
if (forText) {

View File

@@ -81,7 +81,8 @@ QWidget *panelBar(QWidget *parent)
auto frame = new QWidget(parent);
frame->setAutoFillBackground(true);
frame->setMinimumWidth(WelcomePageHelpers::HSpacing);
QPalette pal = frame->palette();
QPalette pal;
pal.setBrush(QPalette::Window, {});
pal.setColor(QPalette::Window, themeColor(Theme::Welcome_BackgroundPrimaryColor));
frame->setPalette(pal);
return frame;