Use qEnvironmentVariableIsEmpty or qEnvironmentVariableIsSet directly

Change-Id: I4f2e61e4bade9e7b4518d144db8163e596ab6264
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Montel Laurent
2017-04-14 09:48:25 +02:00
committed by Laurent Montel
parent 2f8c2d8864
commit d29396b164
15 changed files with 15 additions and 15 deletions
@@ -136,7 +136,7 @@ int main(int argc, char *argv[])
#endif
//If a style different from Desktop is set we have to use QGuiApplication
bool useGuiApplication = !qgetenv("QT_QUICK_CONTROLS_STYLE").isEmpty()
bool useGuiApplication = qEnvironmentVariableIsSet("QT_QUICK_CONTROLS_STYLE")
&& qgetenv("QT_QUICK_CONTROLS_STYLE") != "Desktop";
if (useGuiApplication) {