summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppprojectupdater.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-08-29 11:34:13 +0200
committerEike Ziller <eike.ziller@qt.io>2019-09-13 06:43:02 +0000
commitb6c227714664aa6024f1390c0deaf692c6e05ef6 (patch)
treecc431c038deff40e243c354b7c6ecffd40cc57b5 /src/plugins/cpptools/cppprojectupdater.cpp
parent3beab5c985184f760ee0f06447db7f8b418ee1ee (diff)
downloadqt-creator-b6c227714664aa6024f1390c0deaf692c6e05ef6.tar.gz
GenericProject: Make dependency on CppTools optional
Especially in the light of the language server, the generic project is currently the project one can use for language servers that require a "project workspace". Makes it possibly to run Qt Creator with "-noload CppTools" if you still want to use generic projects with some other language. Change-Id: Ib9059289a2db4c44c0c1060a02fcdafacb885fbd Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppprojectupdater.cpp')
-rw-r--r--src/plugins/cpptools/cppprojectupdater.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppprojectupdater.cpp b/src/plugins/cpptools/cppprojectupdater.cpp
index 342db21265..f89f8e9fc8 100644
--- a/src/plugins/cpptools/cppprojectupdater.cpp
+++ b/src/plugins/cpptools/cppprojectupdater.cpp
@@ -101,4 +101,14 @@ void CppProjectUpdater::onProjectInfoGenerated()
QTC_CHECK(future != QFuture<void>());
}
+CppProjectUpdaterFactory::CppProjectUpdaterFactory()
+{
+ setObjectName("CppProjectUpdaterFactory");
+}
+
+CppProjectUpdaterInterface *CppProjectUpdaterFactory::create()
+{
+ return new CppProjectUpdater;
+}
+
} // namespace CppTools