mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
#4722 AppFwk: Rename
This commit is contained in:
parent
f4cfc750f1
commit
a9080e14c3
@ -1189,7 +1189,7 @@ void RiuSummaryCurveDefSelection::defineEditorAttribute( const caf::PdmFieldHand
|
||||
{
|
||||
if ( &m_selectedSummaryCategories == field )
|
||||
{
|
||||
attrib->fieldToReceiveCurrentItemValue = &m_currentSummaryCategory;
|
||||
attrib->currentIndexFieldHandle = &m_currentSummaryCategory;
|
||||
attrib->showTextFilter = false;
|
||||
attrib->showToggleAllCheckbox = false;
|
||||
attrib->setCurrentIndexWhenItemIsChecked = true;
|
||||
|
@ -786,7 +786,7 @@ protected:
|
||||
caf::PdmUiTreeSelectionEditorAttribute* attr = dynamic_cast<caf::PdmUiTreeSelectionEditorAttribute*>(attribute);
|
||||
if (attr)
|
||||
{
|
||||
attr->fieldToReceiveCurrentItemValue = &m_highlightedEnum;
|
||||
attr->currentIndexFieldHandle = &m_highlightedEnum;
|
||||
}
|
||||
}
|
||||
else if (field == &m_proxyEnumField)
|
||||
|
@ -355,9 +355,9 @@ void PdmUiTreeSelectionEditor::configureAndUpdateUi(const QString& uiConfigName)
|
||||
|
||||
m_model->resetUiValueCache();
|
||||
|
||||
if (m_attributes.fieldToReceiveCurrentItemValue)
|
||||
if (m_attributes.currentIndexFieldHandle)
|
||||
{
|
||||
PdmUiFieldHandle* uiFieldHandle = m_attributes.fieldToReceiveCurrentItemValue->uiCapability();
|
||||
PdmUiFieldHandle* uiFieldHandle = m_attributes.currentIndexFieldHandle->uiCapability();
|
||||
if (uiFieldHandle)
|
||||
{
|
||||
QModelIndexList indices = allVisibleSourceModelIndices();
|
||||
@ -657,9 +657,9 @@ void PdmUiTreeSelectionEditor::currentChanged(const QModelIndex& current)
|
||||
m_proxyModel->setData(current, true, Qt::CheckStateRole);
|
||||
}
|
||||
|
||||
if (m_attributes.fieldToReceiveCurrentItemValue)
|
||||
if (m_attributes.currentIndexFieldHandle)
|
||||
{
|
||||
PdmUiFieldHandle* uiFieldHandle = m_attributes.fieldToReceiveCurrentItemValue->uiCapability();
|
||||
PdmUiFieldHandle* uiFieldHandle = m_attributes.currentIndexFieldHandle->uiCapability();
|
||||
if (uiFieldHandle)
|
||||
{
|
||||
QVariant v = m_proxyModel->data(current, PdmUiTreeSelectionQModel::optionItemValueRole());
|
||||
|
@ -64,11 +64,11 @@ public:
|
||||
bool singleSelectionMode;
|
||||
bool setCurrentIndexWhenItemIsChecked;
|
||||
|
||||
/// fieldToReceiveCurrentFieldValue is used to communicate the value of current item in the tree view
|
||||
/// currentIndexFieldHandle is used to communicate the value of current item in the tree view
|
||||
/// This is useful when displaying a list of appEnums, and a dependent view is displaying content based on
|
||||
/// the current item in the tree view
|
||||
/// Make sure the type of the receiving field is of the same type as the field used in PdmUiTreeSelectionEditor
|
||||
caf::PdmFieldHandle* fieldToReceiveCurrentItemValue;
|
||||
caf::PdmFieldHandle* currentIndexFieldHandle;
|
||||
|
||||
public:
|
||||
PdmUiTreeSelectionEditorAttribute()
|
||||
@ -78,7 +78,7 @@ public:
|
||||
singleSelectionMode = false;
|
||||
setCurrentIndexWhenItemIsChecked = false;
|
||||
|
||||
fieldToReceiveCurrentItemValue = nullptr;
|
||||
currentIndexFieldHandle = nullptr;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user