fixed stupid copy/paste error when switching to smart pointers in PMusrWiz.
This commit is contained in:
parent
7a1f60d00f
commit
5b093208eb
@ -464,19 +464,19 @@ PIntroPage::PIntroPage(PAdmin *admin, PMsrData *data, QWidget *parent) :
|
||||
fMsrFileName->setToolTip("enter msr-file name or leave it empty.");
|
||||
fMsrFileName->setWhatsThis("If empty the file name will be generate,\nbased on the run number, the fit type\nand the type of measurement.");
|
||||
|
||||
fYear = std::unique_ptr<QLineEdit>();
|
||||
fYear = std::make_unique<QLineEdit>();
|
||||
fYear->setValidator(new QIntValidator());
|
||||
QDate date = QDate::currentDate();
|
||||
fYear->setText(QString("%1").arg(date.year()));
|
||||
fYear->setToolTip("year when the run took place.");
|
||||
fYear->setWhatsThis("The year is used to generate\nthe RUN header information where\nmusrfit will look for the data.");
|
||||
|
||||
fRunNumber = std::unique_ptr<QLineEdit>();
|
||||
fRunNumber = std::make_unique<QLineEdit>();
|
||||
fRunNumber->setValidator(new QIntValidator());
|
||||
fRunNumber->setText(QString("%1").arg(fMsrData->getRunNumber()));
|
||||
fRunNumber->setToolTip("enter the run number here.");
|
||||
|
||||
fInstitute = std::unique_ptr<QComboBox>();
|
||||
fInstitute = std::make_unique<QComboBox>();
|
||||
QStringList list = fAdmin->getInstituteList(); // get list form the instrument_def's
|
||||
list.prepend("UnDef");
|
||||
fInstitute->addItems(list);
|
||||
@ -484,7 +484,7 @@ PIntroPage::PIntroPage(PAdmin *admin, PMsrData *data, QWidget *parent) :
|
||||
if (idx != -1)
|
||||
fInstitute->setCurrentIndex(idx);
|
||||
|
||||
fInstrument = std::unique_ptr<QComboBox>();
|
||||
fInstrument = std::make_unique<QComboBox>();
|
||||
list.clear();
|
||||
list << fAdmin->getInstrumentList(fMsrData->getInstitute());
|
||||
list.prepend("UnDef");
|
||||
@ -493,20 +493,20 @@ PIntroPage::PIntroPage(PAdmin *admin, PMsrData *data, QWidget *parent) :
|
||||
if (idx != -1)
|
||||
fInstrument->setCurrentIndex(idx);
|
||||
|
||||
fFitType = std::unique_ptr<QComboBox>();
|
||||
fFitType = std::make_unique<QComboBox>();
|
||||
list.clear();
|
||||
list << "UnDef" << "Single Histo" << "Single Histo RRF" << "Asymmetry" << "Asymmetry RRF" << "Mu Minus" << "None muSR";
|
||||
fFitType->addItems(list);
|
||||
idx = fFitType->findText(fAdmin->getDefaultFitType());
|
||||
fFitType->setCurrentIndex(idx);
|
||||
|
||||
fMeasurementType = std::unique_ptr<QComboBox>();
|
||||
fMeasurementType = std::make_unique<QComboBox>();
|
||||
list.clear();
|
||||
list << "UnDef" << "ZF" << "TF" << "LF";
|
||||
fMeasurementType->addItems(list);
|
||||
fMeasurementType->setCurrentIndex(fMsrData->getTypeOfMeasurement());
|
||||
|
||||
fT0 = std::unique_ptr<QComboBox>();
|
||||
fT0 = std::make_unique<QComboBox>();
|
||||
list.clear();
|
||||
list << "from data file" << "call musrT0" << "enter here";
|
||||
fT0->addItems(list);
|
||||
|
Loading…
x
Reference in New Issue
Block a user