forked from qt-creator/qt-creator
Utils: Use FilePathAspect::setDefaultValue
... instead of StringAspect::setDefaultFilePath. Closer to the intended uniform access. Task-number: QTCREATORBUG-29167 Change-Id: I87df385ef98873a0955010149a9a9b09a5f29daf Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -873,11 +873,6 @@ void StringAspect::setFilePath(const FilePath &value)
|
||||
setValue(value.toUserOutput());
|
||||
}
|
||||
|
||||
void StringAspect::setDefaultFilePath(const FilePath &value)
|
||||
{
|
||||
setDefaultValue(value.toUserOutput());
|
||||
}
|
||||
|
||||
PathChooser *StringAspect::pathChooser() const
|
||||
{
|
||||
return d->m_pathChooserDisplay.data();
|
||||
@@ -1337,6 +1332,11 @@ void FilePathAspect::setValue(const FilePath &filePath)
|
||||
StringAspect::setValue(filePath.toUserOutput());
|
||||
}
|
||||
|
||||
void FilePathAspect::setDefaultValue(const FilePath &filePath)
|
||||
{
|
||||
StringAspect::setDefaultValue(filePath.toUserOutput());
|
||||
}
|
||||
|
||||
/*!
|
||||
\class Utils::ColorAspect
|
||||
\inmodule QtCreator
|
||||
|
||||
Reference in New Issue
Block a user