void ALCPeakFittingPresenter::initialize()
  {
    m_view->initialize();

    connect(m_view, SIGNAL(fitRequested()), SLOT(fit()));
    connect(m_view, SIGNAL(currentFunctionChanged()), SLOT(onCurrentFunctionChanged()));
    connect(m_view, SIGNAL(peakPickerChanged()), SLOT(onPeakPickerChanged()));

    // We are updating the whole function anyway, so paramName if left out
    connect(m_view, SIGNAL(parameterChanged(QString,QString)), SLOT(onParameterChanged(QString)));

    connect(m_model, SIGNAL(fittedPeaksChanged()), SLOT(onFittedPeaksChanged()));
    connect(m_model, SIGNAL(dataChanged()), SLOT(onDataChanged()));
  }
 void ALCPeakFittingModel::setFittedPeaks(IFunction_const_sptr fittedPeaks)
 {
   m_fittedPeaks = fittedPeaks;
   emit fittedPeaksChanged();
 }