Commit 72d09161 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

rm QList::insert() warning

parent d366bc04
......@@ -56,6 +56,7 @@ Data1DViewItem::Data1DViewItem()
if (name != P_AXES_UNITS)
return;
setAxesRangeToData();
qInfo() << "Data1DViewItem" << jobItem() << jobItem()->instrumentItem();
GUI::Model::DataViewUtils::updateAxesTitle(this);
});
......
......@@ -367,6 +367,7 @@ void JobItem::writeNonSessionItems(QXmlStreamWriter* writer) const
m_simulationOptionsItem.writeContentTo(writer);
writer->writeEndElement();
qInfo() << "write instr" << m_instrument.get();
Streamer(writer).write<InstrumentItemCatalog>(Tags::Instrument, m_instrument.get());
writer->writeStartElement(Tags::Sample);
......@@ -395,6 +396,7 @@ void JobItem::readNonSessionItems(QXmlStreamReader* reader)
} else if (reader->name() == Tags::Instrument) {
InstrumentItem* p = nullptr;
Streamer(reader).read<InstrumentItemCatalog>(Tags::Instrument, p);
qInfo() << "read instr" << p;
m_instrument.reset(p);
} else if (reader->name() == Tags::ParameterContainer) {
m_parameterContainer.readContentFrom(reader);
......
......@@ -193,8 +193,12 @@ void SimulationView::updateSelection(QComboBox* comboBox, QStringList itemList,
return;
}
if (allowNone)
itemList.insert(-1, "None");
qInfo() << itemList.size();
if (allowNone) {
itemList.prepend("None");
qInfo() << itemList;
}
comboBox->addItems(itemList);
if (itemList.contains(previousItem))
comboBox->setCurrentIndex(itemList.indexOf(previousItem));
......
Supports Markdown
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