Skip to content

Commit

Permalink
Refs #6616. Add the new option to the Muon fit browser
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbekasov committed Mar 10, 2014
1 parent da32970 commit 87c6819
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Code/Mantid/MantidQt/MantidWidgets/src/MuonFitPropertyBrowser.cpp
Expand Up @@ -111,12 +111,22 @@ void MuonFitPropertyBrowser::init()

// Custom settings that are specific and asked for by the muon scientists.
QtProperty* customSettingsGroup = m_groupManager->addProperty("Settings");

m_rawData = m_boolManager->addProperty("Fit To Raw Data");
bool data = settings.value("Fit To Raw Data",QVariant(false)).toBool();
m_boolManager->setValue(m_rawData,data);

m_showParamErrors = m_boolManager->addProperty("Show Parameter Errors");
// XXX: showParamErrors is true by default for Muons
bool showParamErrors = settings.value(m_showParamErrors->propertyName(), true).toBool();
m_boolManager->setValue(m_showParamErrors, showParamErrors);
m_parameterManager->setErrorsEnabled(showParamErrors);

customSettingsGroup->addSubProperty(m_minimizer);
customSettingsGroup->addSubProperty(m_plotDiff);
customSettingsGroup->addSubProperty(m_rawData);
customSettingsGroup->addSubProperty(m_showParamErrors);

m_customSettingsGroup = m_browser->addProperty(customSettingsGroup);

// Initialise the layout.
Expand Down

0 comments on commit 87c6819

Please sign in to comment.