diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2017-06-20 12:50:00 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2017-06-20 12:50:00 +0000 |
commit | 0148389356ca1741520f671e88266b5a7768239c (patch) | |
tree | e22d413a3c337afff20005e19cedd3654fe2a245 /examples/quick/shared/shared.h | |
parent | f2e44812a739b9f481213c67e7683b99676f2593 (diff) | |
parent | 8af287965907e785afefaa4dd010834a76f2d0f4 (diff) |
Merge "Merge branch 'wip/scenegraphng' into dev" into refs/staging/dev
Diffstat (limited to 'examples/quick/shared/shared.h')
-rw-r--r-- | examples/quick/shared/shared.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/quick/shared/shared.h b/examples/quick/shared/shared.h index 0eed618d9d..ae04667c8f 100644 --- a/examples/quick/shared/shared.h +++ b/examples/quick/shared/shared.h @@ -56,6 +56,11 @@ f.setVersion(4, 4);\ view.setFormat(f);\ }\ + if (qgetenv("QT_QUICK_MULTISAMPLE").toInt()) {\ + QSurfaceFormat f = view.format();\ + f.setSamples(4);\ + view.setFormat(f);\ + }\ view.connect(view.engine(), &QQmlEngine::quit, &app, &QCoreApplication::quit);\ new QQmlFileSelector(view.engine(), &view);\ view.setSource(QUrl("qrc:///" #NAME ".qml")); \ |