forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user