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

@@ -219,6 +219,13 @@ bool QmakePriFileNode::renameFile(const QString &filePath, const QString &newFil
return pri ? pri->renameFile(filePath, newFilePath) : false;
}
bool QmakePriFileNode::addDependencies(const QStringList &dependencies)
{
if (QmakePriFile * const pri = priFile())
return pri->addDependencies(dependencies);
return false;
}
FolderNode::AddNewInformation QmakePriFileNode::addNewInformation(const QStringList &files, Node *context) const
{
Q_UNUSED(files)