From b1031d25dccb2a4ceb93f38cf1668bca760808f6 Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Mon, 8 Oct 2018 14:51:36 +0200 Subject: [PATCH] ProjectExplorer: Fix build with Qt 5.9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‘qEnvironmentVariable’ was not declared in this scope. Change-Id: Ibd5922c07a360410e006315459b35b5c45f87a9f Reviewed-by: Christian Stenger --- src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp index a75bb6ee3b7..3a01d9e0454 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp @@ -318,7 +318,7 @@ static QStringList environmentTemplatesPaths() { QStringList paths; - QString envTempPath = qEnvironmentVariable("QTCREATOR_TEMPLATES_PATH"); + QString envTempPath = QString::fromLocal8Bit(qgetenv("QTCREATOR_TEMPLATES_PATH")); if (!envTempPath.isEmpty()) { for (const QString &path : envTempPath