Skip to content

Commit

Permalink
Removed unnecessary slot.
Browse files Browse the repository at this point in the history
Refs #7555
  • Loading branch information
arturbekasov committed Aug 30, 2013
1 parent bc7ff8c commit 124908c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ private slots:

/// Opens the managed directory dialog for easier access for the user.
void openDirectoryDialog();

/// Stores the custom time value.
void storeCustomTimeValue();
};

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ void MuonAnalysisOptionTab::initLayout()
// Start & finish time input boxes
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(editingFinished()), this, SLOT(timeAxisFinishAtInputChanged()));
connect(m_uiForm.timeAxisFinishAtInput, SIGNAL(editingFinished()), this, SIGNAL(settingsTabUpdatePlot()));
Expand Down Expand Up @@ -248,11 +247,15 @@ void MuonAnalysisOptionTab::timeAxisStartAtInputChanged()
{
try
{
double boevs = boost::lexical_cast<double>(m_uiForm.timeAxisStartAtInput->text().toStdString());
const QString inputString = m_uiForm.timeAxisStartAtInput->text();
const double inputValue = boost::lexical_cast<double>(inputString.toStdString());

QSettings group;
group.beginGroup(m_settingsGroup + "plotStyleOptions");
group.setValue("timeAxisStart", boevs);
group.setValue("timeAxisStart", inputValue);

m_customTimeValue = inputString;
group.setValue("customTimeValue", m_customTimeValue);
}
catch (...)
{
Expand Down Expand Up @@ -481,18 +484,6 @@ void MuonAnalysisOptionTab::setStoredCustomTimeValue(const QString & storedCusto
m_customTimeValue = storedCustomTimeValue;
}

///
void MuonAnalysisOptionTab::storeCustomTimeValue()
{
if( m_uiForm.timeComboBox->currentIndex() == 2 )
{
m_customTimeValue = m_uiForm.timeAxisStartAtInput->text();
QSettings group;
group.beginGroup(m_settingsGroup + "plotStyleOptions");
group.setValue("customTimeValue", m_customTimeValue);
}
}

}
}
}

0 comments on commit 124908c

Please sign in to comment.