From 0bd827518d446391e43d714e9a6043cc714632ae Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Fri, 15 Mar 2013 09:33:28 +0100 Subject: Make QT_STYLE_OVERRIDE env variable available to release builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This shouldn't be restricted to internal builds. It's nice to be able to enable fusion style by default instead of GTK, for example. Change-Id: Icf9b4c990ddd1152b7444948c98717faff1c5ad6 Reviewed-by: Giuseppe D'Angelo Reviewed-by: Samuel Rødal --- src/widgets/kernel/qapplication.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp index e9ec0a916d..f29532471d 100644 --- a/src/widgets/kernel/qapplication.cpp +++ b/src/widgets/kernel/qapplication.cpp @@ -965,11 +965,7 @@ QStyle *QApplication::style() // Compile-time search for default style // QString style; -#ifdef QT_BUILD_INTERNAL QString envStyle = QString::fromLocal8Bit(qgetenv("QT_STYLE_OVERRIDE")); -#else - QString envStyle; -#endif if (!QApplicationPrivate::styleOverride.isEmpty()) { style = QApplicationPrivate::styleOverride; } else if (!envStyle.isEmpty()) { -- cgit v1.2.3