summaryrefslogtreecommitdiff
path: root/src/controls/doc/src/qtquickcontrolsstyles-index.qdoc
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-04-21 23:18:49 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-04-22 06:31:23 +0000
commit3411c3579fb9e767c819c0c8d9f35c52c9964b06 (patch)
treebb59e29289d4f4c88f92ccae9f0e9b63acb26aab /src/controls/doc/src/qtquickcontrolsstyles-index.qdoc
parent2ee6ef43d681746d07c1175738184715ce0d84e4 (diff)
downloadqtquickcontrols-3411c3579fb9e767c819c0c8d9f35c52c9964b06.tar.gz
Add support for QT_QUICK_CONTROLS_1_STYLE
Takes priority over QT_QUICK_CONTROLS_STYLE to allow specifying system wide style name preferences separately for Qt Quick Controls 1 and 2. [ChangeLog][Controls] Added support for a QT_QUICK_CONTROLS_1_STYLE environment variable, which takes priority over the existing variable QT_QUICK_CONTROLS_STYLE. This allows specifying system wide style name preferences separately for Qt Quick Controls 1 and 2. Change-Id: I0e40c2790c24b7ef66b1995b8337e573bb2f75a2 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/controls/doc/src/qtquickcontrolsstyles-index.qdoc')
-rw-r--r--src/controls/doc/src/qtquickcontrolsstyles-index.qdoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controls/doc/src/qtquickcontrolsstyles-index.qdoc b/src/controls/doc/src/qtquickcontrolsstyles-index.qdoc
index 956096d1..8a1c2ab0 100644
--- a/src/controls/doc/src/qtquickcontrolsstyles-index.qdoc
+++ b/src/controls/doc/src/qtquickcontrolsstyles-index.qdoc
@@ -92,17 +92,17 @@
\section2 Selecting Styles
You can apply a different style to the controls by setting the
- \e QT_QUICK_CONTROLS_STYLE environment variable to the name of the style.
+ \e QT_QUICK_CONTROLS_1_STYLE environment variable to the name of the style.
For example, to use the Flat style, you can do the following:
\code
- QT_QUICK_CONTROLS_STYLE=Flat ./app
+ QT_QUICK_CONTROLS_1_STYLE=Flat ./app
\endcode
This can also be done in C++, using qputenv():
\code
- qputenv("QT_QUICK_CONTROLS_STYLE", "Flat");
+ qputenv("QT_QUICK_CONTROLS_1_STYLE", "Flat");
\endcode
\section1 Styling Views