Added icons to context menu in 3D view

This commit is contained in:
Magne Sjaastad 2015-09-15 16:33:02 +02:00
parent 708e34045d
commit d99c5daee1

View File

@ -154,9 +154,9 @@ void RiuViewerCommands::displayContextMenu(QMouseEvent* event)
// IJK -slice commands // IJK -slice commands
menu.addAction(QString("I-slice range filter"), this, SLOT(slotRangeFilterI())); menu.addAction(QIcon(":/CellFilter_Range.png"), QString("I-slice range filter"), this, SLOT(slotRangeFilterI()));
menu.addAction(QString("J-slice range filter"), this, SLOT(slotRangeFilterJ())); menu.addAction(QIcon(":/CellFilter_Range.png"), QString("J-slice range filter"), this, SLOT(slotRangeFilterJ()));
menu.addAction(QString("K-slice range filter"), this, SLOT(slotRangeFilterK())); menu.addAction(QIcon(":/CellFilter_Range.png"), QString("K-slice range filter"), this, SLOT(slotRangeFilterK()));
RimEclipseView* eclipseView = dynamic_cast<RimEclipseView*>(m_reservoirView.p()); RimEclipseView* eclipseView = dynamic_cast<RimEclipseView*>(m_reservoirView.p());
if (eclipseView) if (eclipseView)
@ -164,7 +164,7 @@ void RiuViewerCommands::displayContextMenu(QMouseEvent* event)
RimEclipseCellColors* cellColors = eclipseView->cellResult().p(); RimEclipseCellColors* cellColors = eclipseView->cellResult().p();
if (cellColors) if (cellColors)
{ {
QAction* propertyAction = new QAction(QString("Add property filter"), this); QAction* propertyAction = new QAction(QIcon(":/CellFilter_Values.png"), QString("Add property filter"), this);
connect(propertyAction, SIGNAL(triggered()), SLOT(slotAddEclipsePropertyFilter())); connect(propertyAction, SIGNAL(triggered()), SLOT(slotAddEclipsePropertyFilter()));
bool isPerCellFaceResult = RimDefines::isPerCellFaceResult(cellColors->resultVariable()); bool isPerCellFaceResult = RimDefines::isPerCellFaceResult(cellColors->resultVariable());
@ -193,7 +193,7 @@ void RiuViewerCommands::displayContextMenu(QMouseEvent* event)
RimGeoMechCellColors* cellColors = geoMechView->cellResult().p(); RimGeoMechCellColors* cellColors = geoMechView->cellResult().p();
if (cellColors) if (cellColors)
{ {
menu.addAction(QString("Add property filter"), this, SLOT(slotAddGeoMechPropertyFilter())); menu.addAction(QIcon(":/CellFilter_Values.png"), QString("Add property filter"), this, SLOT(slotAddGeoMechPropertyFilter()));
} }
} }