mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1762 SourSimRL: Use *.sourres as filter in file open dialog
This commit is contained in:
parent
6747289a89
commit
93502706be
@ -521,3 +521,17 @@ void RimEclipseResultCase::fieldChangedByUi(const caf::PdmFieldHandle* changedFi
|
|||||||
return RimEclipseCase::fieldChangedByUi(changedField, oldValue, newValue);
|
return RimEclipseCase::fieldChangedByUi(changedField, oldValue, newValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimEclipseResultCase::defineEditorAttribute(const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute)
|
||||||
|
{
|
||||||
|
if (field == &m_sourSimFileName)
|
||||||
|
{
|
||||||
|
caf::PdmUiFilePathEditorAttribute* myAttr = dynamic_cast<caf::PdmUiFilePathEditorAttribute*>(attribute);
|
||||||
|
if (myAttr)
|
||||||
|
{
|
||||||
|
myAttr->m_fileSelectionFilter = "SourSim (*.sourres)";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -61,6 +61,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||||
|
virtual void defineEditorAttribute(const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void loadAndUpdateSourSimData();
|
void loadAndUpdateSourSimData();
|
||||||
|
Loading…
Reference in New Issue
Block a user