mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1969 Curve Calculator : Support single select in tree selection editor
This commit is contained in:
@@ -757,15 +757,17 @@ void RiuSummaryCurveDefSelection::buildAddressListForCategoryRecursively(RifEcli
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuSummaryCurveDefSelection::defineEditorAttribute(const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute)
|
||||
{
|
||||
if (&m_selectedSummaryCategories == field)
|
||||
caf::PdmUiTreeSelectionEditorAttribute* attrib = dynamic_cast<caf::PdmUiTreeSelectionEditorAttribute*> (attribute);
|
||||
if (attrib)
|
||||
{
|
||||
caf::PdmUiTreeSelectionEditorAttribute* attrib = dynamic_cast<caf::PdmUiTreeSelectionEditorAttribute*> (attribute);
|
||||
if (attrib)
|
||||
if (&m_selectedSummaryCategories == field)
|
||||
{
|
||||
attrib->fieldToReceiveCurrentItemValue = &m_currentSummaryCategory;
|
||||
attrib->showTextFilter = false;
|
||||
attrib->showToggleAllCheckbox = false;
|
||||
}
|
||||
|
||||
attrib->singleSelectionMode = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user