diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-11-09 17:06:17 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-11-10 11:28:10 +0000 |
commit | f5467114b789dcb33ad88105fe84bddf42436d8c (patch) | |
tree | bac248119788d47ee05e99e6f0cdf2ac0c179407 /src/quickcontrols2/qquickstyle.h | |
parent | d6e03b3837f369e9fc94915ef3ad649903845382 (diff) |
QQuickStyle::availableStyles()
This allows us to introduce platform-specific styles, such as the iOS
style, and make them appear correctly in the Gallery example so that we
don't have to hard-code the lists separately for different platforms.
[ChangeLog][Controls][QQuickStyle] Added availableStyles() method that
returns the list of available built-in styles.
Change-Id: Ieea88577f402cbc52a844d6777e64c6bd55c5ab9
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quickcontrols2/qquickstyle.h')
-rw-r--r-- | src/quickcontrols2/qquickstyle.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quickcontrols2/qquickstyle.h b/src/quickcontrols2/qquickstyle.h index d2e7faf1..4260411e 100644 --- a/src/quickcontrols2/qquickstyle.h +++ b/src/quickcontrols2/qquickstyle.h @@ -50,6 +50,7 @@ public: static QString path(); static void setStyle(const QString &style); static void setFallbackStyle(const QString &style); + static QStringList availableStyles(); }; QT_END_NAMESPACE |