diff options
author | Shawn Rutledge <[email protected]> | 2021-08-13 16:00:13 +0200 |
---|---|---|
committer | Shawn Rutledge <[email protected]> | 2021-08-17 16:14:53 +0200 |
commit | ca89437d00aeb8916738a964a62aef3cff7dc5ab (patch) | |
tree | 3d4336713d05d20fdea688cc7b7caa9ac4707759 /examples/quick/shared/shared.h | |
parent | e02964f01aec41cd144563622c4659c31dbee82d (diff) |
Use qEnvironmentVariableIntValue() instead of qgetenv().toInt()
The docs tell us that it's faster.
Pick-to: 6.2
Change-Id: Ib828ed9a10bbb617670a61e7525cbbe25704815d
Reviewed-by: Mitch Curtis <[email protected]>
Diffstat (limited to 'examples/quick/shared/shared.h')
-rw-r--r-- | examples/quick/shared/shared.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/shared/shared.h b/examples/quick/shared/shared.h index a6a468ddcb..b6c7c4a45b 100644 --- a/examples/quick/shared/shared.h +++ b/examples/quick/shared/shared.h @@ -59,13 +59,13 @@ app.setOrganizationDomain("qt-project.org");\ app.setApplicationName(QFileInfo(app.applicationFilePath()).baseName());\ QQuickView view;\ - if (qgetenv("QT_QUICK_CORE_PROFILE").toInt()) {\ + if (qEnvironmentVariableIntValue("QT_QUICK_CORE_PROFILE")) {\ QSurfaceFormat f = view.format();\ f.setProfile(QSurfaceFormat::CoreProfile);\ f.setVersion(4, 4);\ view.setFormat(f);\ }\ - if (qgetenv("QT_QUICK_MULTISAMPLE").toInt()) {\ + if (qEnvironmentVariableIntValue("QT_QUICK_MULTISAMPLE")) {\ QSurfaceFormat f = view.format();\ f.setSamples(4);\ view.setFormat(f);\ |