19 #include <QApplication>
50 QStringList existingNames;
52 existingNames << item->sampleName();
Defines abstract item with a material property.
Defines class MultiLayerItem.
Defines class MultiLayerItems.
void removeMultiLayer(MultiLayerItem *sample)
void serialize(Streamer &s)
QStringList sampleNames() const
QVector< MultiLayerItem * > m_samples
QVector< MultiLayerItem * > sampleItems() const
MultiLayerItem * addMultiLayer()
Adds a sample and returns the new item.
Supports serialization to or deserialization from QXmlStream.
void assertVersion(unsigned expectedVersion) const
As reader, throws DeserializationException unless the expected version is read. As writer,...
void rwVector(Streamer &s, const QString &tag, QVector< T > &vec, Args... argsForConstructor)
Serializes a list of items of known and fixed type. Passes optional arguments to the constructor.