#2200 AppFwk Tree Selection Editor: Select item when toggling

When toggling the checked state, also select (highlight) the toggled item
This commit is contained in:
Magne Sjaastad
2017-12-04 13:25:47 +01:00
parent ae8cdbc546
commit eaa0a1d6fe

View File

@@ -207,14 +207,14 @@ void PdmUiTreeSelectionEditor::configureAndUpdateUi(const QString& uiConfigName)
m_treeView->setContextMenuPolicy(Qt::NoContextMenu);
m_model->enableSingleSelectionMode(m_attributes.singleSelectionMode);
connect(m_treeView, SIGNAL(clicked(QModelIndex)), this, SLOT(slotClicked(QModelIndex)));
}
else
{
m_treeView->setSelectionMode(QAbstractItemView::ExtendedSelection);
}
connect(m_treeView, SIGNAL(clicked(QModelIndex)), this, SLOT(slotClicked(QModelIndex)));
if (!m_attributes.showTextFilter)
{
m_textFilterLineEdit->hide();