Replace some PathChooser::setFile with setFilePath

Change-Id: I9a135e27d97b6706ea199b60a0b0b28838c77dcc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-09-08 17:16:43 +02:00
parent f72c4cb8ac
commit 704b0af8db
8 changed files with 14 additions and 15 deletions

View File

@@ -72,7 +72,7 @@ void ExtPropertiesMView::visitMPackage(const qmt::MPackage *package)
}
if (!m_configPath->hasFocus()) {
if (project->configPath().isEmpty()) {
m_configPath->setPath(QString());
m_configPath->setFilePath({});
} else {
// make path absolute (may be relative to current project's directory)
QDir projectDir = QFileInfo(project->fileName()).absoluteDir();