forked from qt-creator/qt-creator
CMake Project: Make sure the tree has focus after adding an item
Adding items and losing them in the tree was a bad usability feature. On Windows that was the behavior. Change-Id: Ic0f9b41fce79844aaf8803713cb0220c4618c127 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Tobias Hunger
parent
e186df1ba3
commit
fe85b9cd82
@@ -319,6 +319,7 @@ CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildConfiguration *bc)
|
||||
});
|
||||
QModelIndex idx = m_configModel->indexForItem(item);
|
||||
idx = m_configTextFilterModel->mapFromSource(m_configFilterModel->mapFromSource(idx));
|
||||
m_configView->setFocus();
|
||||
m_configView->scrollTo(idx);
|
||||
m_configView->setCurrentIndex(idx);
|
||||
m_configView->edit(idx);
|
||||
|
Reference in New Issue
Block a user