diff --git a/src/libs/utils/aspects.cpp b/src/libs/utils/aspects.cpp index 50b6f5e299f..058b2a7bdc3 100644 --- a/src/libs/utils/aspects.cpp +++ b/src/libs/utils/aspects.cpp @@ -864,7 +864,7 @@ FilePath StringAspect::filePath() const return FilePath::fromUserInput(value()); } -PathChooser *StringAspect::pathChooser() const +PathChooser *FilePathAspect::pathChooser() const { return d->m_pathChooserDisplay.data(); } diff --git a/src/libs/utils/aspects.h b/src/libs/utils/aspects.h index a98f6ae79d0..e8cafb79b30 100644 --- a/src/libs/utils/aspects.h +++ b/src/libs/utils/aspects.h @@ -529,8 +529,6 @@ public: FilePath filePath() const; - PathChooser *pathChooser() const; // Avoid to use. - signals: void checkedChanged(); void validChanged(bool validState); @@ -563,6 +561,8 @@ public: void setAllowPathFromDevice(bool allowPathFromDevice); void setValidatePlaceHolder(bool validatePlaceHolder); void setOpenTerminalHandler(const std::function &openTerminal); + + PathChooser *pathChooser() const; // Avoid to use. }; class QTCREATOR_UTILS_EXPORT IntegerAspect : public TypedAspect