Utils: Also allow FilePathAspects to auto-register

Task-number: QTCREATORBUG-29167
Change-Id: Iba301764072cc1ca3d3a335a8106ab121733b387
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2023-05-23 15:46:44 +02:00
parent 9dcd2cf40b
commit 962d9d55d0
2 changed files with 3 additions and 2 deletions

View File

@@ -1347,7 +1347,8 @@ void StringAspect::makeCheckable(CheckBoxPlacement checkBoxPlacement,
*/ */
FilePathAspect::FilePathAspect() FilePathAspect::FilePathAspect(AspectContainer *container)
: StringAspect(container)
{ {
setDisplayStyle(PathChooserDisplay); setDisplayStyle(PathChooserDisplay);
} }

View File

@@ -446,7 +446,7 @@ protected:
class QTCREATOR_UTILS_EXPORT FilePathAspect : public StringAspect class QTCREATOR_UTILS_EXPORT FilePathAspect : public StringAspect
{ {
public: public:
FilePathAspect(); FilePathAspect(AspectContainer *container = nullptr);
FilePath operator()() const { return filePath(); } FilePath operator()() const { return filePath(); }
}; };