mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Measurements : Move setCheckable into feature
This commit is contained in:
parent
5014c86a3f
commit
9bb4cb3e1a
@ -66,6 +66,7 @@ void RicToggleMeasurementModeFeature::setupActionLook(QAction* actionToSetup)
|
||||
{
|
||||
actionToSetup->setText("Measurement Mode");
|
||||
actionToSetup->setIcon(QIcon(":/Ruler16x16.png"));
|
||||
actionToSetup->setCheckable(true);
|
||||
|
||||
auto* meas = measurement();
|
||||
if (meas && meas->isInMeasurementMode())
|
||||
|
@ -605,7 +605,6 @@ void RiuMainWindow::createToolBars()
|
||||
QToolBar* toolbar = addToolBar(tr("Measurement"));
|
||||
toolbar->setObjectName(toolbar->windowTitle());
|
||||
auto action = cmdFeatureMgr->action("RicToggleMeasurementModeFeature");
|
||||
action->setCheckable(true);
|
||||
toolbar->addAction(action);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user