forked from qt-creator/qt-creator
qmljs: move defaultProjectInfoForProject to the qmljs library
This removes qmakeprojectmanager and qmlprojectmanager dependency on qmljstools. Qmlprojectmanager still imports qmltoolsconstants.h for a constant but that gives no runtime dependency. Change-Id: Ifd2e76500a3b27a21937603925f03a70049900e1 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -68,8 +68,8 @@ using namespace QmlJSTools;
|
||||
using namespace QmlJSTools::Internal;
|
||||
|
||||
|
||||
ModelManagerInterface::ProjectInfo QmlJSTools::defaultProjectInfoForProject(
|
||||
ProjectExplorer::Project *project)
|
||||
ModelManagerInterface::ProjectInfo QmlJSTools::Internal::ModelManager::defaultProjectInfoForProject(
|
||||
ProjectExplorer::Project *project) const
|
||||
{
|
||||
ModelManagerInterface::ProjectInfo projectInfo(project);
|
||||
ProjectExplorer::Target *activeTarget = 0;
|
||||
|
||||
@@ -72,6 +72,7 @@ protected:
|
||||
void writeMessageInternal(const QString &msg) const QTC_OVERRIDE;
|
||||
WorkingCopy workingCopyInternal() const QTC_OVERRIDE;
|
||||
void addTaskInternal(QFuture<void> result, const QString &msg, const char *taskId) const QTC_OVERRIDE;
|
||||
ProjectInfo defaultProjectInfoForProject(ProjectExplorer::Project *project) const QTC_OVERRIDE;
|
||||
private slots:
|
||||
void updateDefaultProjectInfo();
|
||||
private:
|
||||
@@ -81,8 +82,6 @@ private:
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
QMLJSTOOLS_EXPORT QmlJS::ModelManagerInterface::ProjectInfo defaultProjectInfoForProject(
|
||||
ProjectExplorer::Project *project);
|
||||
QMLJSTOOLS_EXPORT void setupProjectInfoQmlBundles(QmlJS::ModelManagerInterface::ProjectInfo &projectInfo);
|
||||
|
||||
} // namespace QmlJSTools
|
||||
|
||||
Reference in New Issue
Block a user