summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@theqtcompany.com>2014-11-28 16:33:32 +0100
committerAndy Nichols <andy.nichols@theqtcompany.com>2014-12-01 14:54:13 +0200
commit8f0ca3c90ffe11831b99499583e3ef1b2757118d (patch)
tree480163d89fd17561a751068ece791e86a4db4a3a
parentaaa4799a8be7bd8b666ff39661e2b7831fc1b4b8 (diff)
Enable Flat style for Qt Quick Controls
This should cause a few issues with any existing controls that are not overridden with there own style. That will need to be fixed in the demos repo though. Change-Id: I5ed4710fb4847e6b43538e56f94dd8b742804ff7 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 27eec85..b07ee8f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -53,6 +53,9 @@ int main(int argc, char **argv)
{
QApplication app(argc, argv);
+ //Use Flat style for Qt Quick Controls by default
+ qputenv("QT_QUICK_CONTROLS_STYLE", "Flat");
+
#if defined(USE_QTWEBENGINE)
// This is currently needed by all QtWebEngine applications using the HW accelerated QQuickWebView.
// It enables sharing the QOpenGLContext of all QQuickWindows of the application.