Utils: Make StringAspect's (potential) PathChooser accessible

This is not advised use, but helps to avoid an awful hack in the
AppManager plugin.

Change-Id: If40535dfb2c7bd15ff6d4fe49f4fa45d68150ef6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2021-03-19 09:46:26 +01:00
parent 5ad724a3ac
commit 421d428e34
2 changed files with 7 additions and 0 deletions

View File

@@ -839,6 +839,11 @@ void StringAspect::setFilePath(const FilePath &value)
setValue(value.toUserOutput());
}
PathChooser *StringAspect::pathChooser() const
{
return d->m_pathChooserDisplay.data();
}
/*!
\internal
*/

View File

@@ -338,6 +338,8 @@ public:
Utils::FilePath filePath() const;
void setFilePath(const Utils::FilePath &value);
PathChooser *pathChooser() const; // Avoid to use.
signals:
void checkedChanged();