mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -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_proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
|
||||||
|
|
||||||
m_treeView->setModel(m_proxyModel);
|
m_treeView->setModel(m_proxyModel);
|
||||||
|
|
||||||
|
connect(m_treeView->selectionModel(), SIGNAL(currentChanged(QModelIndex, QModelIndex)), this, SLOT(slotCurrentChanged(QModelIndex, QModelIndex)), Qt::UniqueConnection);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool optionsOnly = true;
|
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:
|
private slots:
|
||||||
void customMenuRequested(const QPoint& pos);
|
void customMenuRequested(const QPoint& pos);
|
||||||
|
|
||||||
|
void slotCurrentChanged(const QModelIndex& current, const QModelIndex& previous);
|
||||||
void slotSetSelectedOn();
|
void slotSetSelectedOn();
|
||||||
void slotSetSelectedOff();
|
void slotSetSelectedOff();
|
||||||
void slotSetSubItemsOn();
|
void slotSetSubItemsOn();
|
||||||
|
Loading…
Reference in New Issue
Block a user