aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljs/qmljsmodelmanagerinterface.h
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2016-07-08 13:09:56 +0200
committerUlf Hermann <[email protected]>2016-07-15 16:22:42 +0000
commit1e7bf7f7211fa082f207ffdfc8fd5d3556eae89b (patch)
treee641c9ccc6dc524556d387a3ca6e764e5af87498 /src/libs/qmljs/qmljsmodelmanagerinterface.h
parentb851b57ea3cbe777f8e0894db46a2489704aa84d (diff)
QmlJS: Reparse cpp types when component headers change
Previously the code model would only get updated when the document that contains the qmlRegisterType changed. If the actual component exported to QML lives in a different file, any updates to that component would be lost. With this change we keep track of the header files the components are declared in and rescan if any of them changes. This is still not the greatest way to do it as there are a number of ways to introduce dependencies the system cannot detect. It's better than before, though. Change-Id: Ic077c516dca3ac720f78973c84e5e6e91b6a5c07 Reviewed-by: Marco Benelli <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsmodelmanagerinterface.h')
-rw-r--r--src/libs/qmljs/qmljsmodelmanagerinterface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/qmljs/qmljsmodelmanagerinterface.h b/src/libs/qmljs/qmljsmodelmanagerinterface.h
index 568fb63593c..3f640c6ca78 100644
--- a/src/libs/qmljs/qmljsmodelmanagerinterface.h
+++ b/src/libs/qmljs/qmljsmodelmanagerinterface.h
@@ -275,6 +275,7 @@ private:
QrcCache m_qrcCache;
CppDataHash m_cppDataHash;
+ QHash<QString, QStringList> m_cppDeclarationFiles;
mutable QMutex m_cppDataMutex;
// project integration