Utils: Further split StringAspect and FilePathAspect

... by introducing "proper" FilePathAspect::value() (and therefore
hiding the inherited StringAspect::value(() and a temporary stringValue()
for the transition period for the remaining users of the QString value.

Change-Id: I40cf4238a09a9009cda0decba1acac82bd730233
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2023-07-10 12:31:25 +02:00
parent ebda2068dd
commit 96506f1f6a
9 changed files with 27 additions and 10 deletions

View File

@@ -1327,6 +1327,21 @@ FilePathAspect::FilePathAspect(AspectContainer *container)
setDisplayStyle(PathChooserDisplay);
}
FilePath FilePathAspect::operator()() const
{
return filePath();
}
FilePath FilePathAspect::value() const
{
return filePath();
}
QString FilePathAspect::stringValue() const
{
return StringAspect::value();
}
/*!
Sets the value of this file path aspect to \a value.