Utils: Remove uses of deprecated PathChooser::path()

There's filePath() nowadays.

Change-Id: Ief06bd07a69a287d6a5ca3c41eb7069dba869d52
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-09-27 10:38:51 +02:00
parent 4b5aeb9a74
commit 81acd0c62a
4 changed files with 9 additions and 9 deletions

View File

@@ -1077,12 +1077,12 @@ void StringAspect::addToLayout(LayoutBuilder &builder)
if (d->m_blockAutoApply)
return;
d->m_blockAutoApply = true;
setValue(d->m_pathChooserDisplay->path());
setValue(d->m_pathChooserDisplay->filePath().toString());
d->m_blockAutoApply = false;
});
} else {
connect(d->m_pathChooserDisplay, &PathChooser::pathChanged, this, [this] {
setValue(d->m_pathChooserDisplay->path());
setValue(d->m_pathChooserDisplay->filePath().toString());
});
}
}
@@ -1163,7 +1163,7 @@ QVariant StringAspect::volatileValue() const
switch (d->m_displayStyle) {
case PathChooserDisplay:
QTC_ASSERT(d->m_pathChooserDisplay, return {});
return d->m_pathChooserDisplay->path();
return d->m_pathChooserDisplay->filePath().toString();
case LineEditDisplay:
QTC_ASSERT(d->m_lineEditDisplay, return {});
return d->m_lineEditDisplay->text();