forked from qt-creator/qt-creator
Revert "CMake: Reload item data on CMake executable path changed"
057bb3095
makes it impossible to type in dir separators and so a valid path to a cmake executable in the Path field of the cmake settings page. This reverts commit057bb3095b
. Change-Id: I3edbdced8eaac15f34ca43acf1e86f4be6cd9be7 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -433,7 +433,6 @@ public:
|
||||
|
||||
private:
|
||||
void updateQchFilePath();
|
||||
void reload();
|
||||
|
||||
CMakeToolItemModel *m_model;
|
||||
QLineEdit *m_displayNameLineEdit;
|
||||
@@ -479,8 +478,8 @@ CMakeToolItemConfigWidget::CMakeToolItemConfigWidget(CMakeToolItemModel *model)
|
||||
|
||||
connect(m_binaryChooser, &PathChooser::rawPathChanged, this, [this]() {
|
||||
updateQchFilePath();
|
||||
m_qchFileChooser->setBaseDirectory(m_binaryChooser->filePath().parentDir());
|
||||
store();
|
||||
reload();
|
||||
});
|
||||
connect(m_qchFileChooser, &PathChooser::rawPathChanged, this, &CMakeToolItemConfigWidget::store);
|
||||
connect(m_displayNameLineEdit, &QLineEdit::textChanged, this, &CMakeToolItemConfigWidget::store);
|
||||
@@ -504,18 +503,6 @@ void CMakeToolItemConfigWidget::updateQchFilePath()
|
||||
m_qchFileChooser->setFilePath(CMakeTool::searchQchFile(m_binaryChooser->filePath()));
|
||||
}
|
||||
|
||||
void CMakeToolItemConfigWidget::reload()
|
||||
{
|
||||
if (!m_id.isValid())
|
||||
return;
|
||||
|
||||
const CMakeToolTreeItem *item = m_model->cmakeToolItem(m_id);
|
||||
if (!item)
|
||||
return;
|
||||
|
||||
load(item);
|
||||
}
|
||||
|
||||
void CMakeToolItemConfigWidget::load(const CMakeToolTreeItem *item)
|
||||
{
|
||||
m_loadingItem = true; // avoid intermediate signal handling
|
||||
|
Reference in New Issue
Block a user