forked from qt-creator/qt-creator
Reset qml code model after build
Reset the code model after a build, so it can re-scan the build folder for changed .qmltypes files. This fixes the issue of the QtC embedded code model not recognizing modules and .qmltypes files after a build on qmake projects. Fixes: QTCREATORBUG-24428 Change-Id: I1e584addd2fe9b0918a8fd9b372b4fa23b72f36b Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Semih Yavuz <semih.yavuz@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -745,8 +745,10 @@ void QmakeBuildSystem::asyncUpdate()
|
|||||||
|
|
||||||
void QmakeBuildSystem::buildFinished(bool success)
|
void QmakeBuildSystem::buildFinished(bool success)
|
||||||
{
|
{
|
||||||
if (success)
|
if (success) {
|
||||||
m_invalidateQmakeVfsContents = true;
|
m_invalidateQmakeVfsContents = true;
|
||||||
|
updateQmlJSCodeModel();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Tasks QmakeProject::projectIssues(const Kit *k) const
|
Tasks QmakeProject::projectIssues(const Kit *k) const
|
||||||
|
Reference in New Issue
Block a user