mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2266 Curve Creator : Activate attribute to be able to select item when checked
This commit is contained in:
parent
81129302f3
commit
9612a7162e
@ -937,14 +937,15 @@ void RiuSummaryCurveDefSelection::buildAddressListForCategoryRecursively(RifEcli
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuSummaryCurveDefSelection::defineEditorAttribute(const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute)
|
||||
{
|
||||
caf::PdmUiTreeSelectionEditorAttribute* attrib = dynamic_cast<caf::PdmUiTreeSelectionEditorAttribute*> (attribute);
|
||||
if (attrib)
|
||||
if (&m_selectedSummaryCategories == field)
|
||||
{
|
||||
if (&m_selectedSummaryCategories == field)
|
||||
caf::PdmUiTreeSelectionEditorAttribute* attrib = dynamic_cast<caf::PdmUiTreeSelectionEditorAttribute*> (attribute);
|
||||
if (attrib)
|
||||
{
|
||||
attrib->fieldToReceiveCurrentItemValue = &m_currentSummaryCategory;
|
||||
attrib->showTextFilter = false;
|
||||
attrib->showToggleAllCheckbox = false;
|
||||
attrib->setCurrentIndexWhenItemIsChecked = true;
|
||||
}
|
||||
|
||||
attrib->singleSelectionMode = !m_multiSelectionMode;
|
||||
|
Loading…
Reference in New Issue
Block a user