#867 Use icons in context menu

This commit is contained in:
Magne Sjaastad 2016-11-06 19:09:15 +01:00
parent f116673827
commit 692c8bd1e0
3 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,7 @@ void RicNewSummaryPlotFeature::onActionTriggered(bool isChecked)
void RicNewSummaryPlotFeature::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setText("New Summary Plot");
actionToSetup->setIcon(QIcon(":/SummaryPlot16x16.png"));
}
//--------------------------------------------------------------------------------------------------

View File

@ -90,6 +90,7 @@ void RicPasteSummaryPlotFeature::onActionTriggered(bool isChecked)
void RicPasteSummaryPlotFeature::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setText("Paste Summary Plot");
actionToSetup->setIcon(QIcon(":/SummaryPlot16x16.png"));
}
//--------------------------------------------------------------------------------------------------

View File

@ -272,6 +272,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection()
{
commandIds << "RicPasteSummaryCurveFeature";
commandIds << "RicPasteSummaryCurveFilterFeature";
commandIds << "RicPasteSummaryPlotFeature";
commandIds << "Separator";
commandIds << "RicNewSummaryCurveFilterFeature";
commandIds << "RicNewSummaryCurveFeature";