Utils: Move pathChooser accessor from String to FilePathAspect

Change-Id: Ida3cf1ea8249461bd48327b0c77de1e66a2541e6
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2023-07-18 08:58:24 +02:00
parent afe1fb3676
commit ce998a1661
2 changed files with 3 additions and 3 deletions

View File

@@ -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();
}

View File

@@ -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<void()> &openTerminal);
PathChooser *pathChooser() const; // Avoid to use.
};
class QTCREATOR_UTILS_EXPORT IntegerAspect : public TypedAspect<qint64>