forked from qt-creator/qt-creator
Utils: Support ~ in PathChooser
Change-Id: Ib4b79f8ba27ab856dfeb93a8b697b087be90d633 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
0bf40a73c4
commit
be88c38e42
@@ -319,12 +319,12 @@ void PathChooser::setEnvironment(const Environment &env)
|
||||
|
||||
QString PathChooser::path() const
|
||||
{
|
||||
return d->expandedPath(QDir::fromNativeSeparators(d->m_lineEdit->text()));
|
||||
return d->expandedPath(rawPath());
|
||||
}
|
||||
|
||||
QString PathChooser::rawPath() const
|
||||
{
|
||||
return QDir::fromNativeSeparators(d->m_lineEdit->text());
|
||||
return FileName::fromUserInput(QDir::fromNativeSeparators(d->m_lineEdit->text())).toString();
|
||||
}
|
||||
|
||||
FileName PathChooser::fileName() const
|
||||
|
||||
Reference in New Issue
Block a user