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