"New class" wizard: Respect the project's "no Qt keywords" setting

Fixes: QTCREATORBUG-6812
Change-Id: I3f51c61f7a1ed1e4626be6bc31fa2e3affed2084
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2019-07-16 17:06:29 +02:00
parent 9aa67f225f
commit 46ef3f3027
6 changed files with 40 additions and 0 deletions

View File

@@ -339,6 +339,9 @@ QVariant QmakeProFileNode::data(Core::Id role) const
return info.buildDir.toString();
}
if (role == ProjectExplorer::Constants::QT_KEYWORDS_ENABLED)
return !proFile()->variableValue(Variable::Config).contains("no_keywords");
QTC_CHECK(false);
return {};
}