Android: Check target architecture before deploying to device

Change-Id: I2d05f98cb6c390fb84186929fdf4152cc07d8965
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
Daniel Teske
2013-05-03 15:10:21 +02:00
parent c45e4e614a
commit c842d83f91
5 changed files with 52 additions and 7 deletions

View File

@@ -310,6 +310,17 @@ bool AndroidManager::setTargetSDK(ProjectExplorer::Target *target, const QString
return true;
}
QString AndroidManager::targetArch(ProjectExplorer::Target *target)
{
Qt4ProjectManager::Qt4Project *pro = qobject_cast<Qt4ProjectManager::Qt4Project *>(target->project());
if (!pro)
return QString();
Qt4ProjectManager::Qt4ProFileNode *node = pro->rootQt4ProjectNode();
if (!node)
return QString();
return node->singleVariableValue(Qt4ProjectManager::AndroidArchVar);
}
QIcon AndroidManager::highDpiIcon(ProjectExplorer::Target *target)
{
return icon(target, HighDPI);