forked from qt-creator/qt-creator
Utils: Add FilePathAspect::setValue
Phasing out StringPathAspect::setFilePath Change-Id: If74d6b521ce6d558da83ab526057b32e8c37c243 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -1332,6 +1332,11 @@ FilePathAspect::FilePathAspect(AspectContainer *container)
|
||||
setDisplayStyle(PathChooserDisplay);
|
||||
}
|
||||
|
||||
void FilePathAspect::setValue(const FilePath &filePath)
|
||||
{
|
||||
StringAspect::setValue(filePath.toUserOutput());
|
||||
}
|
||||
|
||||
/*!
|
||||
\class Utils::ColorAspect
|
||||
\inmodule QtCreator
|
||||
|
@@ -523,6 +523,7 @@ public:
|
||||
FilePathAspect(AspectContainer *container = nullptr);
|
||||
|
||||
FilePath operator()() const { return filePath(); }
|
||||
void setValue(const FilePath &filePath);
|
||||
};
|
||||
|
||||
class QTCREATOR_UTILS_EXPORT IntegerAspect : public TypedAspect<qint64>
|
||||
|
Reference in New Issue
Block a user