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

rm unused parameter

parent bc5dad22
No related branches found
No related tags found
1 merge request!494Remove SessionModel/SessionItem from MaterialModel/MaterialItem
......@@ -57,7 +57,7 @@ void ParameterItem::propagateValueToLink(double newValue)
m_d.set(newValue);
}
void ParameterItem::linkToMaterial(MaterialItem* material, DoubleDescriptor d)
void ParameterItem::linkToDescriptor(DoubleDescriptor d)
{
m_link = d.path();
m_d = d;
......
......@@ -52,8 +52,8 @@ public:
//! referring from fit parameters.
QString link() const;
//! Links this item to the given value of a material.
void linkToMaterial(MaterialItem* material, DoubleDescriptor d);
//! Links this item to the given value defined by a descriptor.
void linkToDescriptor(DoubleDescriptor d);
//! Links this item to the given session item.
void linkToSessionItem(SessionItem* item);
......
......@@ -115,7 +115,7 @@ void GUI::Model::ParameterTreeUtils::createParameterTree(JobItem* jobItem,
auto* materialValue = materialLabel->model()->insertItem<ParameterItem>(materialLabel);
materialValue->setDisplayName(d.label);
materialValue->setValue(QVariant(d.get()));
materialValue->linkToMaterial(material, d);
materialValue->linkToDescriptor(d);
if (recreateBackupValues)
container->setBackupValue(materialValue->link(), d.get());
}
......
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