From ce998a16610975c344ffd87705e0585de46d7d78 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 18 Jul 2023 08:58:24 +0200 Subject: [PATCH] Utils: Move pathChooser accessor from String to FilePathAspect Change-Id: Ida3cf1ea8249461bd48327b0c77de1e66a2541e6 Reviewed-by: Marcus Tillmanns Reviewed-by: --- src/libs/utils/aspects.cpp | 2 +- src/libs/utils/aspects.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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