Qmake: Retrieve .h and .cpp extension variables with correct names

We will need them for more things than ui_*.h.

Change-Id: I394aa8646095cdafb426c15746243b27c1c1ab1b
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-02-08 17:53:07 +01:00
parent 2d4ea0b623
commit bffaf9cc49
3 changed files with 6 additions and 4 deletions

View File

@@ -870,7 +870,7 @@ QString QmakeProject::generatedUiHeader(const FileName &formFile) const
if (const QmakeProFileNode *pro = proFileNodeOf(rootProjectNode(), FormType, formFile))
return QmakeProFileNode::uiHeaderFile(
pro->uiDirectory(Utils::FileName::fromString(pro->buildDir())),
formFile, pro->singleVariableValue(QmakeVariable::UiHeaderExtensionVar));
formFile, pro->singleVariableValue(QmakeVariable::HeaderExtensionVar));
return QString();
}