forked from qt-creator/qt-creator
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:
@@ -1347,7 +1347,8 @@ void StringAspect::makeCheckable(CheckBoxPlacement checkBoxPlacement,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
FilePathAspect::FilePathAspect()
|
FilePathAspect::FilePathAspect(AspectContainer *container)
|
||||||
|
: StringAspect(container)
|
||||||
{
|
{
|
||||||
setDisplayStyle(PathChooserDisplay);
|
setDisplayStyle(PathChooserDisplay);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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(); }
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user