forked from qt-creator/qt-creator
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:
@@ -252,6 +252,8 @@ QdbLinuxDeviceFactory::QdbLinuxDeviceFactory()
|
||||
setConstructionFunction(&QdbDevice::create);
|
||||
setCreator([] {
|
||||
QdbDeviceWizard wizard(Core::ICore::dialogParent());
|
||||
if (!creatorTheme()->preferredStyles().isEmpty())
|
||||
wizard.setWizardStyle(QWizard::ModernStyle);
|
||||
if (wizard.exec() != QDialog::Accepted)
|
||||
return IDevice::Ptr();
|
||||
return wizard.device();
|
||||
|
Reference in New Issue
Block a user