New class wizard: Add Qt module dependencies, if necessary

Provide general infrastrucure and implementation for qmake.

Fixes: QTCREATORBUG-16067
Change-Id: I8c6368fe2724c9450dcbc3410b6ca459bbbdc043
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2019-06-18 15:41:27 +02:00
parent f420788465
commit 019447c535
8 changed files with 78 additions and 1 deletions

View File

@@ -737,6 +737,13 @@ bool FolderNode::renameFile(const QString &filePath, const QString &newFilePath)
return false;
}
bool FolderNode::addDependencies(const QStringList &dependencies)
{
if (ProjectNode * const pn = managingProject())
return pn->addDependencies(dependencies);
return false;
}
FolderNode::AddNewInformation FolderNode::addNewInformation(const QStringList &files, Node *context) const
{
Q_UNUSED(files);
@@ -868,6 +875,12 @@ bool ProjectNode::renameFile(const QString &filePath, const QString &newFilePath
return false;
}
bool ProjectNode::addDependencies(const QStringList &dependencies)
{
Q_UNUSED(dependencies)
return false;
}
bool ProjectNode::supportsAction(ProjectAction, const Node *) const
{
return false;