From 692c8bd1e06f4fff7e9aa79e7aac3a885ae0846d Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Sun, 6 Nov 2016 19:09:15 +0100 Subject: [PATCH] #867 Use icons in context menu --- .../Commands/SummaryPlotCommands/RicNewSummaryPlotFeature.cpp | 1 + .../Commands/SummaryPlotCommands/RicPasteSummaryPlotFeature.cpp | 1 + ApplicationCode/ProjectDataModel/RimContextCommandBuilder.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/ApplicationCode/Commands/SummaryPlotCommands/RicNewSummaryPlotFeature.cpp b/ApplicationCode/Commands/SummaryPlotCommands/RicNewSummaryPlotFeature.cpp index 35612bec54..747f145d2c 100644 --- a/ApplicationCode/Commands/SummaryPlotCommands/RicNewSummaryPlotFeature.cpp +++ b/ApplicationCode/Commands/SummaryPlotCommands/RicNewSummaryPlotFeature.cpp @@ -87,6 +87,7 @@ void RicNewSummaryPlotFeature::onActionTriggered(bool isChecked) void RicNewSummaryPlotFeature::setupActionLook(QAction* actionToSetup) { actionToSetup->setText("New Summary Plot"); + actionToSetup->setIcon(QIcon(":/SummaryPlot16x16.png")); } //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/Commands/SummaryPlotCommands/RicPasteSummaryPlotFeature.cpp b/ApplicationCode/Commands/SummaryPlotCommands/RicPasteSummaryPlotFeature.cpp index f50a31434b..9a7ade2587 100644 --- a/ApplicationCode/Commands/SummaryPlotCommands/RicPasteSummaryPlotFeature.cpp +++ b/ApplicationCode/Commands/SummaryPlotCommands/RicPasteSummaryPlotFeature.cpp @@ -90,6 +90,7 @@ void RicPasteSummaryPlotFeature::onActionTriggered(bool isChecked) void RicPasteSummaryPlotFeature::setupActionLook(QAction* actionToSetup) { actionToSetup->setText("Paste Summary Plot"); + actionToSetup->setIcon(QIcon(":/SummaryPlot16x16.png")); } //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/ProjectDataModel/RimContextCommandBuilder.cpp b/ApplicationCode/ProjectDataModel/RimContextCommandBuilder.cpp index f3003cfff7..8ea0db3813 100644 --- a/ApplicationCode/ProjectDataModel/RimContextCommandBuilder.cpp +++ b/ApplicationCode/ProjectDataModel/RimContextCommandBuilder.cpp @@ -272,6 +272,7 @@ QStringList RimContextCommandBuilder::commandsFromSelection() { commandIds << "RicPasteSummaryCurveFeature"; commandIds << "RicPasteSummaryCurveFilterFeature"; + commandIds << "RicPasteSummaryPlotFeature"; commandIds << "Separator"; commandIds << "RicNewSummaryCurveFilterFeature"; commandIds << "RicNewSummaryCurveFeature";