forked from qt-creator/qt-creator
Fix display of some file paths on Windows
In particular, the "executable on host" field on RemoteLinux & friends had the wrong separators. Change-Id: Ic36d73e863c78dcefd5c670537dd7c86b081d173 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -178,12 +178,12 @@ void BaseStringAspect::toMap(QVariantMap &map) const
|
|||||||
|
|
||||||
FilePath BaseStringAspect::filePath() const
|
FilePath BaseStringAspect::filePath() const
|
||||||
{
|
{
|
||||||
return FilePath::fromString(d->m_value);
|
return FilePath::fromUserInput(d->m_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseStringAspect::setFilePath(const FilePath &val)
|
void BaseStringAspect::setFilePath(const FilePath &val)
|
||||||
{
|
{
|
||||||
setValue(val.toString());
|
setValue(val.toUserOutput());
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseStringAspect::setLabelText(const QString &labelText)
|
void BaseStringAspect::setLabelText(const QString &labelText)
|
||||||
|
@@ -469,7 +469,7 @@ void ExecutableAspect::setPlaceHolderText(const QString &placeHolderText)
|
|||||||
|
|
||||||
void ExecutableAspect::setExecutable(const FilePath &executable)
|
void ExecutableAspect::setExecutable(const FilePath &executable)
|
||||||
{
|
{
|
||||||
m_executable.setValue(executable.toString());
|
m_executable.setFilePath(executable);
|
||||||
m_executable.setShowToolTipOnLabel(true);
|
m_executable.setShowToolTipOnLabel(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user