mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3487 Use icons for the different MSW valves
This commit is contained in:
parent
0d3b205dac
commit
a1705c5e39
@ -49,6 +49,6 @@ void RicNewValveFeature::onActionTriggered(bool isChecked)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicNewValveFeature::setupActionLook(QAction* actionToSetup)
|
||||
{
|
||||
actionToSetup->setIcon(QIcon(":/PerforationInterval16x16.png"));
|
||||
actionToSetup->setIcon(QIcon(":/ICDValve16x16.png"));
|
||||
actionToSetup->setText("New Valve");
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ CAF_PDM_SOURCE_INIT(RimWellPathValve, "WellPathValve");
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWellPathValve::RimWellPathValve()
|
||||
{
|
||||
CAF_PDM_InitObject("WellPathValve", ":/PerforationInterval16x16.png", "", "");
|
||||
CAF_PDM_InitObject("WellPathValve", ":/ICDValve16x16.png", "", "");
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&m_type, "CompletionType", "Type ", "", "", "");
|
||||
m_type = RiaDefines::ICD;
|
||||
@ -280,4 +280,17 @@ void RimWellPathValve::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrderi
|
||||
{
|
||||
QString fullName = componentLabel() + QString(" %1").arg(m_measuredDepth());
|
||||
this->setName(fullName);
|
||||
|
||||
if ( m_type() == RiaDefines::ICD )
|
||||
{
|
||||
this->setUiIcon(QIcon(":/ICDValve16x16.png"));
|
||||
}
|
||||
else if ( m_type() == RiaDefines::ICV )
|
||||
{
|
||||
this->setUiIcon(QIcon(":/ICVValve16x16.png"));
|
||||
}
|
||||
else if ( m_type() == RiaDefines::AICD )
|
||||
{
|
||||
this->setUiIcon(QIcon(":/AICDValve16x16.png"));
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 286 B After Width: | Height: | Size: 286 B |
@ -128,7 +128,7 @@
|
||||
<file>arrow-right-green.png</file>
|
||||
<file>2DMap16x16.png</file>
|
||||
<file>2DMaps16x16.png</file>
|
||||
<file>AICVValve16x16.png</file>
|
||||
<file>AICDValve16x16.png</file>
|
||||
<file>ICDValve16x16.png</file>
|
||||
<file>ICVValve16x16.png</file>
|
||||
<file>CasingDesign16x16.png</file>
|
||||
|
Loading…
Reference in New Issue
Block a user