forked from qt-creator/qt-creator
Utils: Replace FileChooser::path() by filePath().toString()
Keep the old method for now to ease downstream porting. The change is kept mechanical, there's a lot of cleanup possible now on the user code side. Change-Id: I936baedd45b7ba057f1c789a1bec896886f48eff Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -280,7 +280,7 @@ void QnxToolChainConfigWidget::discardImpl()
|
||||
m_compilerCommand->setFilePath(tc->compilerCommand());
|
||||
m_sdpPath->setPath(tc->sdpPath());
|
||||
m_abiWidget->setAbis(tc->supportedAbis(), tc->targetAbi());
|
||||
if (!m_compilerCommand->path().isEmpty())
|
||||
if (!m_compilerCommand->filePath().toString().isEmpty())
|
||||
m_abiWidget->setEnabled(true);
|
||||
}
|
||||
|
||||
@@ -289,7 +289,7 @@ bool QnxToolChainConfigWidget::isDirtyImpl() const
|
||||
auto tc = static_cast<const QnxToolChain *>(toolChain());
|
||||
Q_ASSERT(tc);
|
||||
return m_compilerCommand->filePath() != tc->compilerCommand()
|
||||
|| m_sdpPath->path() != tc->sdpPath()
|
||||
|| m_sdpPath->filePath().toString() != tc->sdpPath()
|
||||
|| m_abiWidget->currentAbi() != tc->targetAbi();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user