forked from qt-creator/qt-creator
Android: JavaParser, adjust paths from build to source directory
Since we copy the java files to the build directory, we need to adjust the path that the java compiler emits for error messages. For that the JavaParser needs to know the source directory, which is the android package source dir and the build directory. The AndroidDeployQtStep thus needs more information then just the input json file and now stores the path to the .pro file to both retrieve the input file and the android package source directory. Task-number: QTCREATORBUG-10904 Change-Id: Ib5141b35b610bc2eee568a096fc5e930f9eb2e47 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
@@ -187,12 +187,10 @@ void AndroidDeployQtWidget::updateInputFileUi()
|
||||
m_ui->inputFileComboBox->setVisible(true);
|
||||
|
||||
m_ui->inputFileComboBox->clear();
|
||||
foreach (QmakeProjectManager::QmakeProFileNode *node, nodes) {
|
||||
QString file = node->singleVariableValue(QmakeProjectManager::AndroidDeploySettingsFile);
|
||||
m_ui->inputFileComboBox->addItem(node->displayName(), file);
|
||||
}
|
||||
foreach (QmakeProjectManager::QmakeProFileNode *node, nodes)
|
||||
m_ui->inputFileComboBox->addItem(node->displayName(), node->path());
|
||||
|
||||
int index = m_ui->inputFileComboBox->findData(m_step->inputFile());
|
||||
int index = m_ui->inputFileComboBox->findData(m_step->proFilePathForInputFile());
|
||||
m_ui->inputFileComboBox->setCurrentIndex(index);
|
||||
m_ignoreChange = false;
|
||||
}
|
||||
@@ -202,8 +200,8 @@ void AndroidDeployQtWidget::inputFileComboBoxIndexChanged()
|
||||
{
|
||||
if (m_ignoreChange)
|
||||
return;
|
||||
QString text = m_ui->inputFileComboBox->itemData(m_ui->inputFileComboBox->currentIndex()).toString();
|
||||
m_step->setInputFile(text);
|
||||
QString proFilePath = m_ui->inputFileComboBox->itemData(m_ui->inputFileComboBox->currentIndex()).toString();
|
||||
m_step->setProFilePathForInputFile(proFilePath);
|
||||
}
|
||||
|
||||
QString AndroidDeployQtWidget::displayName() const
|
||||
|
||||
Reference in New Issue
Block a user