Skip to content
Snippets Groups Projects
Commit eb87b563 authored by Matthias Puchner's avatar Matthias Puchner
Browse files

free ParticleForm from SessionItem

parent 0efd9c7f
No related branches found
No related tags found
1 merge request!570remove SessionModel/Item from SampleModel and all related items
......@@ -13,6 +13,7 @@
// ************************************************************************************************
#include "GUI/View/SampleDesigner/ParticleForm.h"
#include "GUI/Model/Sample/FormFactorItemCatalog.h"
#include "GUI/Model/Sample/FormFactorItems.h"
#include "GUI/Model/Sample/ParticleItem.h"
#include "GUI/Model/Types/VectorDescriptor.h"
......@@ -20,15 +21,13 @@
#include "GUI/View/SampleDesigner/FormLayouter.h"
#include "GUI/View/SampleDesigner/MaterialInplaceForm.h"
#include "GUI/View/Tool/GroupBoxCollapser.h"
#include <QAction>
ParticleForm::ParticleForm(QWidget* parent, ParticleItem* particleItem, bool allowAbundance,
SampleEditorController* ec, bool allowRemove)
: QGroupBox(parent)
{
const QString formfactor =
particleItem->formfactorItem()->value().value<ComboProperty>().getValue();
const QString formfactor = FormFactorItemCatalog::menuEntry(particleItem->formfactor());
setTitle("Particle (" + formfactor + ")");
FormLayouter layouter(this, ec);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment