mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2020 Move LAS files. Support for submenus and command features with custom name and user data
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
|
||||
#include "RiuLineSegmentQwtPlotCurve.h"
|
||||
|
||||
#include "cafCmdFeatureMenuBuilder.h"
|
||||
|
||||
#include "cvfBase.h"
|
||||
#include "cvfAssert.h"
|
||||
#include "cvfColor3.h"
|
||||
@@ -130,11 +132,11 @@ QSize RiuResultQwtPlot::minimumSizeHint() const
|
||||
void RiuResultQwtPlot::contextMenuEvent(QContextMenuEvent* event)
|
||||
{
|
||||
QMenu menu;
|
||||
QStringList commandIds;
|
||||
caf::CmdFeatureMenuBuilder menuBuilder;
|
||||
|
||||
commandIds << "RicNewGridTimeHistoryCurveFeature";
|
||||
menuBuilder << "RicNewGridTimeHistoryCurveFeature";
|
||||
|
||||
RimContextCommandBuilder::appendCommandsToMenu(commandIds, &menu);
|
||||
menuBuilder.appendToMenu(&menu);
|
||||
|
||||
if (menu.actions().size() > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user