summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2013-03-15 09:33:28 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-18 08:56:42 +0100
commit0bd827518d446391e43d714e9a6043cc714632ae (patch)
treeb421285980f39bbb3d690d3fcfa3fe5082c34bd8
parent0ea6b8ada00d56de939363e033aab8e9c0d3fdca (diff)
Make QT_STYLE_OVERRIDE env variable available to release builds
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 <giuseppe.dangelo@kdab.com> Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
-rw-r--r--src/widgets/kernel/qapplication.cpp4
1 files changed, 0 insertions, 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()) {