forked from qt-creator/qt-creator
CMake: Don't filter out new keys
Previously, if you have a filter set in the CMake Settings variable list, adding a new one would immediately hide it, as the text filter hides the "<UNSET>" key. This made it look like the adding failed. With this change, new Variables are always shown so they stay editable to user. Change-Id: I9c2eb7f9983b23e1cd3aa50f589142551caaf56f Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -236,6 +236,7 @@ CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildSystem *bs) :
|
||||
m_configTextFilterModel->setSourceModel(m_configFilterModel);
|
||||
m_configTextFilterModel->setSortRole(Qt::DisplayRole);
|
||||
m_configTextFilterModel->setFilterKeyColumn(-1);
|
||||
m_configTextFilterModel->setNewItemRole(ConfigModel::ItemIsUserNew);
|
||||
|
||||
connect(m_configTextFilterModel, &QAbstractItemModel::layoutChanged, this, [this]() {
|
||||
QModelIndex selectedIdx = m_configView->currentIndex();
|
||||
|
||||
Reference in New Issue
Block a user