Commit 7448db84 authored by Daniel Teske's avatar Daniel Teske Committed by Orgad Shaneh

Wizards: Fix dark style for wizard pages

Change-Id: I6c0abc522e8760a6082ac623d4da8facaff4baf3
Task-number: QTCREATORBUG-13395
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@theqtcompany.com>
parent 7dbea56b
......@@ -35,6 +35,8 @@
#include "qtcassert.h"
#include "wizardpage.h"
#include <utils/theme/theme.h>
#include <QDialog>
#include <QDialogButtonBox>
#include <QHash>
......@@ -333,6 +335,8 @@ Wizard::Wizard(QWidget *parent, Qt::WindowFlags flags) :
setOption(QWizard::NoCancelButton, false);
setOption(QWizard::NoDefaultButton, false);
setOption(QWizard::NoBackButtonOnStartPage, true);
if (!Utils::creatorTheme()->preferredStyles().isEmpty())
setWizardStyle(QWizard::ModernStyle);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
if (HostOsInfo::isMacHost()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment