diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2017-12-11 08:30:18 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2017-12-11 08:57:39 +0000 |
commit | 3d3173ac3cb4ee51dfd9d46456bbe9ebf0976022 (patch) | |
tree | 9472fb0979660afc1c39b096e984358579a445fd /src/quicktemplates2/qquickcontrol.cpp | |
parent | eb7551d5d5e5155606e21158ead1541546bc2149 (diff) |
Doc: mention qtquickcontrols2.conf file in palette docs
Currently, there's no explicit mention of being able to customize the
palette via the qtquickcontrols2.conf file.
Change-Id: I11f16a4e7dd759de2121e986df17ae9fdc651180
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickcontrol.cpp')
-rw-r--r-- | src/quicktemplates2/qquickcontrol.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/quicktemplates2/qquickcontrol.cpp b/src/quicktemplates2/qquickcontrol.cpp index 14b8e253..4a3cab81 100644 --- a/src/quicktemplates2/qquickcontrol.cpp +++ b/src/quicktemplates2/qquickcontrol.cpp @@ -1339,8 +1339,12 @@ void QQuickControl::setContentItem(QQuickItem *item) The default palette depends on the system environment. ApplicationWindow maintains a system/theme palette which serves as a default for all controls. There may also be special palette defaults for - certain types of controls. You can also set the default palette for controls by passing a custom - palette to QGuiApplication::setPalette(), before loading any QML. + certain types of controls. You can also set the default palette for controls by either: + + \list + \li passing a custom palette to QGuiApplication::setPalette(), before loading any QML; or + \li specifying the colors in the \l {Qt Quick Controls 2 Configuration File}{qtquickcontrols2.conf file}. + \endlist Control propagates explicit palette properties from parent to children. If you change a specific property on a control's palette, that property propagates to all of the control's children, @@ -1362,7 +1366,10 @@ void QQuickControl::setContentItem(QQuickItem *item) } \endcode - \sa ApplicationWindow::palette, Popup::palette, {qtquickcontrols2-palette}{palette QML Basic Type} + For the full list of available palette colors, see the + \l {qtquickcontrols2-palette}{palette QML Basic Type} documentation. + + \sa ApplicationWindow::palette, Popup::palette */ QPalette QQuickControl::palette() const { |