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

rm QList::insert() warning

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