forked from qt-creator/qt-creator
Utils: Rename FileName to FilePath
More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -76,7 +76,7 @@ void NimCompilerBuildStepConfigWidget::onTargetChanged(int index)
|
||||
{
|
||||
Q_UNUSED(index);
|
||||
auto data = m_ui->targetComboBox->currentData();
|
||||
FileName path = FileName::fromString(data.toString());
|
||||
FilePath path = FilePath::fromString(data.toString());
|
||||
m_buildStep->setTargetNimFile(path);
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ void NimCompilerBuildStepConfigWidget::updateTargetComboBox()
|
||||
|
||||
// Re enter the files
|
||||
m_ui->targetComboBox->clear();
|
||||
foreach (const FileName &file, project->nimFiles())
|
||||
foreach (const FilePath &file, project->nimFiles())
|
||||
m_ui->targetComboBox->addItem(file.fileName(), file.toString());
|
||||
|
||||
const int index = m_ui->targetComboBox->findData(m_buildStep->targetNimFile().toString());
|
||||
|
||||
Reference in New Issue
Block a user