Commit e7a1cc0d authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

fixes to time X scale and enabled wlen and wlen wei writings

parent 9d5ca029
No preview for this file type
......@@ -51,6 +51,7 @@ I0mapmon::I0mapmon(CumbiaPool *cumbia_pool, QWidget *parent) :
w->setSource("$1/name");
connect(ui->pbApplyWlenWei, SIGNAL(clicked()), this, SLOT(applyWavelenX()));
connect(ui->pbApplyWlens, SIGNAL(clicked()), this, SLOT(applyWavelenX()));
// qu-line edit for wavelen / wavelen weights
ui->quleWlens->setTarget(QString("$2/FEL0%1_IOM_wavelengths").arg(m_fel0x));
......@@ -96,7 +97,7 @@ void I0mapmon::applyWavelenX() {
bool ok;
QString tgt, txt;
QVector<double> vals;
txt = ui->quleWlenWei->text();
sender()->objectName() == "pbApplyWlens" ? txt = ui->quleWlens->text() : txt = ui->quleWlenWei->text();
foreach(const QString& v, txt.split(QRegularExpression(",\\s*")))
if(v.toDouble(&ok) && ok) vals.push_back(v.toDouble());
sender()->objectName() == "pbApplyWlens" ? tgt = QString("$2/FEL0%1_IOM_wavelengths").arg(m_fel0x) :
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment