forked from qt-creator/qt-creator
Fix subdir project deployment for symbian
We create a .sis package per leaf project now, deploy all of them and start the executable for the runconfiguration that was selected. This does not cover all use cases, but works for development.
This commit is contained in:
@@ -977,6 +977,19 @@ QList<BuildConfigWidget*> Qt4Project::subConfigWidgets()
|
||||
return subWidgets;
|
||||
}
|
||||
|
||||
void Qt4Project::collectLeafProFiles(QList<Qt4ProFileNode *> &list, Qt4ProFileNode *node)
|
||||
{
|
||||
if (node->projectType() != Internal::SubDirsTemplate) {
|
||||
list.append(node);
|
||||
}
|
||||
foreach (ProjectNode *n, node->subProjectNodes()) {
|
||||
Qt4ProFileNode *qt4ProFileNode = qobject_cast<Qt4ProFileNode *>(n);
|
||||
if (qt4ProFileNode)
|
||||
collectLeafProFiles(list, qt4ProFileNode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Qt4Project::collectApplicationProFiles(QList<Qt4ProFileNode *> &list, Qt4ProFileNode *node)
|
||||
{
|
||||
if (node->projectType() == Internal::ApplicationTemplate
|
||||
@@ -1035,6 +1048,15 @@ void Qt4Project::createApplicationProjects()
|
||||
}
|
||||
}
|
||||
|
||||
QList<Qt4ProFileNode *> Qt4Project::leafProFiles() const
|
||||
{
|
||||
QList<Qt4ProFileNode *> list;
|
||||
if (!rootProjectNode())
|
||||
return list;
|
||||
collectLeafProFiles(list, rootProjectNode());
|
||||
return list;
|
||||
}
|
||||
|
||||
QList<Qt4ProFileNode *> Qt4Project::applicationProFiles() const
|
||||
{
|
||||
QList<Qt4ProFileNode *> list;
|
||||
|
||||
Reference in New Issue
Block a user