Skip to content

Commit

Permalink
Make all the updated take place when editing is finished.
Browse files Browse the repository at this point in the history
Some of them were happening when focus is lost, others when enter is pressed,
now it all happens when the value was changed.

Refs #7555
  • Loading branch information
arturbekasov committed Aug 30, 2013
1 parent f4e2dc3 commit bc7ff8c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Code/Mantid/MantidQt/CustomInterfaces/src/MuonAnalysisOptionTab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ void MuonAnalysisOptionTab::initLayout()
connect(m_uiForm.timeComboBox, SIGNAL(currentIndexChanged(int)), this, SIGNAL(settingsTabUpdatePlot()));

// Start & finish time input boxes
connect(m_uiForm.timeAxisStartAtInput, SIGNAL(lostFocus()), this, SLOT(timeAxisStartAtInputChanged()));
connect(m_uiForm.timeAxisStartAtInput, SIGNAL(returnPressed ()), this, SIGNAL(settingsTabUpdatePlot()));
connect(m_uiForm.timeAxisStartAtInput, SIGNAL(editingFinished()), this, SLOT(timeAxisStartAtInputChanged()));
connect(m_uiForm.timeAxisStartAtInput, SIGNAL(editingFinished()), this, SIGNAL(settingsTabUpdatePlot()));
connect(m_uiForm.timeAxisStartAtInput, SIGNAL(editingFinished()), this, SLOT(storeCustomTimeValue()));

connect(m_uiForm.timeAxisFinishAtInput, SIGNAL(lostFocus()), this, SLOT(timeAxisFinishAtInputChanged()));
connect(m_uiForm.timeAxisFinishAtInput, SIGNAL(returnPressed ()), this, SIGNAL(settingsTabUpdatePlot()));
connect(m_uiForm.timeAxisFinishAtInput, SIGNAL(editingFinished()), this, SLOT(timeAxisFinishAtInputChanged()));
connect(m_uiForm.timeAxisFinishAtInput, SIGNAL(editingFinished()), this, SIGNAL(settingsTabUpdatePlot()));

// Y-axis min & max input boxes
connect(m_uiForm.yAxisMinimumInput, SIGNAL(lostFocus()), this, SLOT(yAxisMinimumInputChanged()));
connect(m_uiForm.yAxisMinimumInput, SIGNAL(editingFinished()), this, SLOT(yAxisMinimumInputChanged()));
connect(m_uiForm.yAxisMinimumInput, SIGNAL(editingFinished ()), this, SLOT(yAxisMinimumInputChanged()));
connect(m_uiForm.yAxisMinimumInput, SIGNAL(returnPressed ()), this, SLOT(validateYMin()));
connect(m_uiForm.yAxisMinimumInput, SIGNAL(editingFinished()), this, SLOT(validateYMin()));

connect(m_uiForm.yAxisMaximumInput, SIGNAL(lostFocus()), this, SLOT(yAxisMaximumInputChanged()));
connect(m_uiForm.yAxisMaximumInput, SIGNAL(editingFinished()), this, SLOT(yAxisMaximumInputChanged()));
connect(m_uiForm.yAxisMaximumInput, SIGNAL(editingFinished ()), this, SLOT(yAxisMaximumInputChanged()));
connect(m_uiForm.yAxisMaximumInput, SIGNAL(returnPressed ()), this, SLOT(validateYMax()));
connect(m_uiForm.yAxisMaximumInput, SIGNAL(editingFinished()), this, SLOT(validateYMax()));

// Autoscale checkbo0x
connect(m_uiForm.yAxisAutoscale, SIGNAL(toggled(bool)), this, SLOT(yAxisAutoscaleChanged(bool)));
Expand All @@ -84,12 +84,12 @@ void MuonAnalysisOptionTab::initLayout()
connect(m_uiForm.rebinComboBox, SIGNAL(currentIndexChanged(int)), this, SIGNAL(settingsTabUpdatePlot()));

// Input for step [fixed rebinning]
connect(m_uiForm.optionStepSizeText, SIGNAL(lostFocus()), this, SLOT(optionStepSizeTextChanged()));
connect(m_uiForm.optionStepSizeText, SIGNAL(returnPressed ()), this, SIGNAL(settingsTabUpdatePlot()));
connect(m_uiForm.optionStepSizeText, SIGNAL(editingFinished()), this, SLOT(optionStepSizeTextChanged()));
connect(m_uiForm.optionStepSizeText, SIGNAL(editingFinished()), this, SIGNAL(settingsTabUpdatePlot()));

// Input for bin boundaries [variable rebinning]
connect(m_uiForm.binBoundaries, SIGNAL(lostFocus()), this, SLOT(binBoundariesChanged()));
connect(m_uiForm.binBoundaries, SIGNAL(returnPressed ()), this, SIGNAL(settingsTabUpdatePlot()));
connect(m_uiForm.binBoundaries, SIGNAL(editingFinished()), this, SLOT(binBoundariesChanged()));
connect(m_uiForm.binBoundaries, SIGNAL(editingFinished()), this, SIGNAL(settingsTabUpdatePlot()));

// Help button [variable rebinning]
connect(m_uiForm.binBoundariesHelp, SIGNAL(clicked()), this, SLOT(rebinHelpClicked()));
Expand Down

0 comments on commit bc7ff8c

Please sign in to comment.