mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
#3751 Fix keyboard selection in Summary Plot Editor
This commit is contained in:
parent
2cf5357a47
commit
ab0fa2fb19
@ -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);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user