mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user