forked from qt-creator/qt-creator
Utils: Replace StringAspect::setFilePath()
... by FilePathAspect::setValue(). Closer to the intented uniform API. Task-number: QTCREATORBUG-29167 Change-Id: Ife26046eaeef2e49108e42a31a2d32e453883e3c Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -841,18 +841,6 @@ FilePath StringAspect::filePath() const
|
||||
return FilePath::fromUserInput(value());
|
||||
}
|
||||
|
||||
/*!
|
||||
Sets the value of this string aspect to \a value.
|
||||
|
||||
\note This simply uses \c FilePath::toUserOutput() for the
|
||||
conversion. It does not use any check that the value is actually
|
||||
a file path.
|
||||
*/
|
||||
void StringAspect::setFilePath(const FilePath &value)
|
||||
{
|
||||
setValue(value.toUserOutput());
|
||||
}
|
||||
|
||||
PathChooser *StringAspect::pathChooser() const
|
||||
{
|
||||
return d->m_pathChooserDisplay.data();
|
||||
@@ -1324,6 +1312,13 @@ FilePathAspect::FilePathAspect(AspectContainer *container)
|
||||
setDisplayStyle(PathChooserDisplay);
|
||||
}
|
||||
|
||||
/*!
|
||||
Sets the value of this file path aspect to \a value.
|
||||
|
||||
\note This does not use any check that the value is actually
|
||||
a file path.
|
||||
*/
|
||||
|
||||
void FilePathAspect::setValue(const FilePath &filePath)
|
||||
{
|
||||
StringAspect::setValue(filePath.toUserOutput());
|
||||
|
||||
Reference in New Issue
Block a user