forked from qt-creator/qt-creator
Utils: Replace FileChooser::path() by filePath().toString()
Keep the old method for now to ease downstream porting. The change is kept mechanical, there's a lot of cleanup possible now on the user code side. Change-Id: I936baedd45b7ba057f1c789a1bec896886f48eff Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -746,7 +746,7 @@ QWidget *PathChooserField::createWidget(const QString &displayName, JsonFieldPag
|
||||
if (!m_historyId.isEmpty())
|
||||
w->setHistoryCompleter(m_historyId);
|
||||
QObject::connect(w, &PathChooser::pathChanged, [this, w] {
|
||||
if (w->path() != m_path)
|
||||
if (w->filePath().toString() != m_path)
|
||||
setHasUserChanges();
|
||||
});
|
||||
return w;
|
||||
@@ -798,7 +798,7 @@ void PathChooserField::fromSettings(const QVariant &value)
|
||||
|
||||
QVariant PathChooserField::toSettings() const
|
||||
{
|
||||
return qobject_cast<PathChooser *>(widget())->path();
|
||||
return qobject_cast<PathChooser *>(widget())->filePath().toString();
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user