Fix Boot2Qt Device dark theme on Windows

Fixes: QTCREATORBUG-28254
Change-Id: Ie146579d2e52b3336d326c69f864a3beecadee69
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Ari Parkkila
2022-10-10 14:45:51 +03:00
parent 19f2a95e1c
commit f50260837c

View File

@@ -252,6 +252,8 @@ QdbLinuxDeviceFactory::QdbLinuxDeviceFactory()
setConstructionFunction(&QdbDevice::create); setConstructionFunction(&QdbDevice::create);
setCreator([] { setCreator([] {
QdbDeviceWizard wizard(Core::ICore::dialogParent()); QdbDeviceWizard wizard(Core::ICore::dialogParent());
if (!creatorTheme()->preferredStyles().isEmpty())
wizard.setWizardStyle(QWizard::ModernStyle);
if (wizard.exec() != QDialog::Accepted) if (wizard.exec() != QDialog::Accepted)
return IDevice::Ptr(); return IDevice::Ptr();
return wizard.device(); return wizard.device();