From 2b30ff31174a33bb161ff05ee120332efa205e53 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Sat, 5 Sep 2020 13:14:39 +0200 Subject: [PATCH] Fix for checked state --- .../UserInterface/RiuRelativePermeabilityPlotPanel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/UserInterface/RiuRelativePermeabilityPlotPanel.cpp b/ApplicationCode/UserInterface/RiuRelativePermeabilityPlotPanel.cpp index 62ad11a22f..85c46a1cda 100644 --- a/ApplicationCode/UserInterface/RiuRelativePermeabilityPlotPanel.cpp +++ b/ApplicationCode/UserInterface/RiuRelativePermeabilityPlotPanel.cpp @@ -116,7 +116,8 @@ RiuRelativePermeabilityPlotPanel::RiuRelativePermeabilityPlotPanel( QDockWidget* m_fixedXAxisCheckBox->setChecked( true ); m_fixedLeftYAxisCheckBox->setChecked( true ); - QCheckBox* showCurveSelection = new QCheckBox( "Show Curve Selection", false ); + QCheckBox* showCurveSelection = new QCheckBox( "Show Curve Selection" ); + showCurveSelection->setCheckState( Qt::Unchecked ); connect( showCurveSelection, SIGNAL( stateChanged( int ) ), SLOT( slotShowCurveSelectionWidgets( int ) ) ); QVBoxLayout* leftLayout = new QVBoxLayout;