#3751 Fix keyboard selection in Summary Plot Editor

This commit is contained in:
Gaute Lindkvist 2018-11-23 15:36:33 +01:00
parent 2cf5357a47
commit ab0fa2fb19
2 changed files with 12 additions and 0 deletions

View File

@ -243,6 +243,9 @@ void PdmUiTreeSelectionEditor::configureAndUpdateUi(const QString& uiConfigName)
m_proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
m_treeView->setModel(m_proxyModel);
connect(m_treeView->selectionModel(), SIGNAL(currentChanged(QModelIndex, QModelIndex)), this, SLOT(slotCurrentChanged(QModelIndex, QModelIndex)), Qt::UniqueConnection);
}
bool optionsOnly = true;
@ -468,6 +471,14 @@ void PdmUiTreeSelectionEditor::customMenuRequested(const QPoint& pos)
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void PdmUiTreeSelectionEditor::slotCurrentChanged(const QModelIndex& current, const QModelIndex& previous)
{
currentChanged(current);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -103,6 +103,7 @@ protected:
private slots:
void customMenuRequested(const QPoint& pos);
void slotCurrentChanged(const QModelIndex& current, const QModelIndex& previous);
void slotSetSelectedOn();
void slotSetSelectedOff();
void slotSetSubItemsOn();