forked from qt-creator/qt-creator
QmakeAndroid: Fill application combobox
... using a new base ProjectNode::targetApplications() function. Change-Id: Id210683dce6bfa7ffbc89973423d326d76ac9309 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
|
||||
#include <projectexplorer/buildconfiguration.h>
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/projectnodes.h>
|
||||
#include <projectexplorer/projectwindow.h>
|
||||
#include <projectexplorer/session.h>
|
||||
#include <projectexplorer/target.h>
|
||||
@@ -496,8 +497,13 @@ void AndroidManifestEditorWidget::updateTargetComboBox()
|
||||
QStringList items;
|
||||
if (project) {
|
||||
Kit *kit = project->activeTarget()->kit();
|
||||
if (DeviceTypeKitInformation::deviceTypeId(kit) == Constants::ANDROID_DEVICE_TYPE)
|
||||
items = AndroidManager::androidQtSupport(project->activeTarget())->projectTargetApplications(project->activeTarget());
|
||||
if (DeviceTypeKitInformation::deviceTypeId(kit) == Constants::ANDROID_DEVICE_TYPE) {
|
||||
ProjectNode *root = project->rootProjectNode();
|
||||
root->forEachProjectNode([&items](const ProjectNode *projectNode) {
|
||||
items << projectNode->targetApplications();
|
||||
});
|
||||
items.sort();
|
||||
}
|
||||
}
|
||||
|
||||
// QComboBox randomly resets what the user has entered
|
||||
|
Reference in New Issue
Block a user