forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
}
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user