aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmljstools/qmljstoolsplugin.cpp
diff options
context:
space:
mode:
authorFawzi Mohamed <[email protected]>2014-01-23 14:28:31 +0100
committerFawzi Mohamed <[email protected]>2014-02-19 21:18:58 +0100
commitd24cb60d487e2241c8364b83658f31178305176a (patch)
tree2702c6f07ecca6a11c194b5352ab622dd55dc783 /src/plugins/qmljstools/qmljstoolsplugin.cpp
parentbf989b75a212b6a39f5a910ca78ad84f50e71f00 (diff)
qml: moving most of ModelManager logic to ModelManageInterface
Currently ModelManager contains lot logic, but as it sits in QmlJSTools it is not possible to use it in standalone tests. Moving most of the logic to ModelManagerInterface (and cleanup) to allow better testing, and refactoring. This introduces a dependency of the qmljs lib on the cplusplus lib Also a (small) part of the CppTool::ModelManagerInterface has been moved to CPlusPlus::CppModelManagerBase to remove the dependency on CppTools to gather the Qml types exposed from C++. Change-Id: Icad7fe96dfd0f1a2b1058d82bd98c77c40aa5e9d Reviewed-by: Fawzi Mohamed <[email protected]>
Diffstat (limited to 'src/plugins/qmljstools/qmljstoolsplugin.cpp')
-rw-r--r--src/plugins/qmljstools/qmljstoolsplugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmljstools/qmljstoolsplugin.cpp b/src/plugins/qmljstools/qmljstoolsplugin.cpp
index 4e02e5b36cb..199cacd3344 100644
--- a/src/plugins/qmljstools/qmljstoolsplugin.cpp
+++ b/src/plugins/qmljstools/qmljstoolsplugin.cpp
@@ -132,13 +132,13 @@ ExtensionSystem::IPlugin::ShutdownFlag QmlJSToolsPlugin::aboutToShutdown()
void QmlJSToolsPlugin::onTaskStarted(Core::Id type)
{
- if (type == QmlJSTools::Constants::TASK_INDEX)
+ if (type == QmlJS::Constants::TASK_INDEX)
m_resetCodeModelAction->setEnabled(false);
}
void QmlJSToolsPlugin::onAllTasksFinished(Core::Id type)
{
- if (type == QmlJSTools::Constants::TASK_INDEX)
+ if (type == QmlJS::Constants::TASK_INDEX)
m_resetCodeModelAction->setEnabled(true);
}