forked from qt-creator/qt-creator
Utils: Replace PathChooser::{fileP,p}athChanged signals
... by a new PathChooser::textChanged signal. They were both emitted in reaction to the underlying line edit's textChanged() signal. Use 'textChanged()' as name to mimic/match the Qt side. This also makes it more clear on the user code side, when this happens. Some textChanged() consumers should probably use editingFinished() instead, but that's left for later changes. Change-Id: Ib07347f616cbf1c5d09bc2f8671ca860d185d1f9 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -45,7 +45,7 @@ void ExtPropertiesMView::visitMPackage(const qmt::MPackage *package)
|
||||
m_configPath->setInitialBrowsePathBackup(
|
||||
Utils::FilePath::fromString(project->fileName()).absolutePath());
|
||||
addRow(tr("Config path:"), m_configPath, "configpath");
|
||||
connect(m_configPath, &Utils::PathChooser::filePathChanged,
|
||||
connect(m_configPath, &Utils::PathChooser::textChanged,
|
||||
this, &ExtPropertiesMView::onConfigPathChanged);
|
||||
}
|
||||
if (!m_configPath->hasFocus()) {
|
||||
@@ -64,8 +64,9 @@ void ExtPropertiesMView::visitMPackage(const qmt::MPackage *package)
|
||||
}
|
||||
}
|
||||
|
||||
void ExtPropertiesMView::onConfigPathChanged(const Utils::FilePath &path)
|
||||
void ExtPropertiesMView::onConfigPathChanged()
|
||||
{
|
||||
const Utils::FilePath path = m_configPath->rawFilePath();
|
||||
bool modified = false;
|
||||
qmt::Project *project = m_projectController->project();
|
||||
if (path.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user