path: root/src/imports/controls/doc/src
diff options
authorJ-P Nurmi <jpnurmi@qt.io>2016-10-24 22:49:10 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-10-25 08:20:18 +0000
commit86da7b7704f566bf6d669a7323839e486c77ec0d (patch)
tree65482df4bd673b968a6a55b7b407f147679bd5e1 /src/imports/controls/doc/src
parent26590b2c5cc70503bf691ad8b7290196fb1124af (diff)
Doc: remove a redundant QQuickStyle example
The "Styling Qt Quick Controls 2" -page is already overloaded with content. Give a minimal one-liner example and link to QQuickStyle for more details, which contains the same snippet that was removed. Change-Id: I77e196aeb8d407fcf05a264232dd83c2e28f97b7 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/doc/src')
1 files changed, 4 insertions, 17 deletions
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-styles.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-styles.qdoc
index dc0db600..d9c03ec3 100644
--- a/src/imports/controls/doc/src/qtquickcontrols2-styles.qdoc
+++ b/src/imports/controls/doc/src/qtquickcontrols2-styles.qdoc
@@ -83,28 +83,15 @@
\section2 Using QQuickStyle in C++
- \l QQuickStyle provides API for configuring a specific style. The following
+ \l QQuickStyle provides C++ API for configuring a specific style. The following
example runs a Qt Quick Controls 2 application with the Material style:
- #include <QGuiApplication>
- #include <QQmlApplicationEngine>
- #include <QQuickStyle>
- int main(int argc, char *argv[])
- {
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QGuiApplication app(argc, argv);
- QQuickStyle::setStyle("Material");
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/main.qml"));
- return app.exec();
- }
+ QQuickStyle::setStyle("Material");
+ See the detailed description of \l QQuickStyle for more details.
\section2 Command line argument
Passing a \c -style command line argument is the convenient way to test different