forked from qt-creator/qt-creator
Utils: Rename FilePath::rawFileName to rawFilePath
Change-Id: Idf8cad2b18087f511aa1efe54adbb5a427660016 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -312,17 +312,17 @@ void PathChooser::setEnvironment(const Environment &env)
|
||||
|
||||
QString PathChooser::rawPath() const
|
||||
{
|
||||
return rawFileName().toString();
|
||||
return rawFilePath().toString();
|
||||
}
|
||||
|
||||
FilePath PathChooser::rawFileName() const
|
||||
FilePath PathChooser::rawFilePath() const
|
||||
{
|
||||
return FilePath::fromString(QDir::fromNativeSeparators(d->m_lineEdit->text()));
|
||||
}
|
||||
|
||||
FilePath PathChooser::filePath() const
|
||||
{
|
||||
return FilePath::fromUserInput(d->expandedPath(rawFileName().toString()));
|
||||
return FilePath::fromUserInput(d->expandedPath(rawFilePath().toString()));
|
||||
}
|
||||
|
||||
// FIXME: try to remove again
|
||||
|
@@ -91,7 +91,7 @@ public:
|
||||
FilePath filePath() const;
|
||||
|
||||
QString rawPath() const; // The raw unexpanded input.
|
||||
FilePath rawFileName() const; // The raw unexpanded input.
|
||||
FilePath rawFilePath() const; // The raw unexpanded input as FilePath.
|
||||
|
||||
static QString expandedDirectory(const QString &input, const Environment &env,
|
||||
const QString &baseDir);
|
||||
|
@@ -151,7 +151,7 @@ void WorkingDirectoryAspect::addToLayout(LayoutBuilder &builder)
|
||||
m_chooser->setFilePath(m_workingDirectory.isEmpty() ? m_defaultWorkingDirectory : m_workingDirectory);
|
||||
connect(m_chooser.data(), &PathChooser::pathChanged, this,
|
||||
[this]() {
|
||||
m_workingDirectory = m_chooser->rawFileName();
|
||||
m_workingDirectory = m_chooser->rawFilePath();
|
||||
m_resetButton->setEnabled(m_workingDirectory != m_defaultWorkingDirectory);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user