From 6f268e490c77efac39b3856e9ab59dc5d992cf57 Mon Sep 17 00:00:00 2001 From: JohannMG Date: Mon, 3 Aug 2020 17:13:49 -0700 Subject: [PATCH] =?UTF-8?q?UI:=20Mac=20fix=20=E2=80=94=20remove=20wizard?= =?UTF-8?q?=20background=20padding?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If style is not set it default's to Mac's style on Mac which adds padding for a background. Looks like wasted space on Mac because there is no background. Matches windows. Does not affect Linux. https://doc.qt.io/qt-5/qwizard.html#elements-of-a-wizard-page --- UI/window-basic-auto-config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/window-basic-auto-config.cpp b/UI/window-basic-auto-config.cpp index e72b772e3..e64e3b610 100644 --- a/UI/window-basic-auto-config.cpp +++ b/UI/window-basic-auto-config.cpp @@ -745,7 +745,7 @@ AutoConfig::AutoConfig(QWidget *parent) : QWizard(parent) std::string serviceType; GetServiceInfo(serviceType, serviceName, server, key); -#ifdef _WIN32 +#if defined(_WIN32) || defined(__APPLE__) setWizardStyle(QWizard::ModernStyle); #endif streamPage = new AutoConfigStreamPage();