Skip to content
Snippets Groups Projects
Commit de1f0423 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm unused capture

parent e7c84534
No related branches found
No related tags found
1 merge request!2697follow-up
This commit is part of merge request !2697. Comments created here will be created in the context of that merge request.
......@@ -88,8 +88,8 @@ void HeinzFormLayout::addVector(VectorProperty& d, bool vertically /*= true*/)
gridLayout->setContentsMargins(0, 0, 0, 0);
gridLayout->setSpacing(6);
GUI::Util::Layer::addMultiPropertyToGrid(gridLayout, 0, {&d.x(), &d.y(), &d.z()}, m_ec,
vertically, true);
GUI::Util::Layer::addMultiPropertyToGrid(gridLayout, 0, {&d.x(), &d.y(), &d.z()}, vertically,
true);
addBoldRow(d.label(), w);
}
......
......@@ -31,10 +31,9 @@
void GUI::Util::Layer::addMultiPropertyToGrid(QGridLayout* m_grid_layout, int firstCol,
const DoubleProperties& valueProperties,
SampleEditorController* ec, bool vertically,
bool addSpacer)
bool vertically, bool addSpacer)
{
const auto setNewValue = [ec](double val, DoubleProperty& d) {
const auto setNewValue = [](double val, DoubleProperty& d) {
d.setDVal(val);
emit gDoc->sampleChanged();
};
......@@ -75,9 +74,9 @@ void GUI::Util::Layer::addMultiPropertyToGrid(
void GUI::Util::Layer::addMultiPropertyToGrid(QGridLayout* m_grid_layout, int firstCol,
const DoubleProperties& valueProperties,
SampleEditorController* ec, bool addSpacer)
bool addSpacer)
{
addMultiPropertyToGrid(m_grid_layout, firstCol, valueProperties, ec, valueProperties.size() > 1,
addMultiPropertyToGrid(m_grid_layout, firstCol, valueProperties, valueProperties.size() > 1,
addSpacer);
}
......
......@@ -31,8 +31,8 @@ namespace GUI::Util::Layer {
//! Create spin boxes for the DoubleProperties and connect them to
//! SampleEditorController::setDouble()
void addMultiPropertyToGrid(QGridLayout* m_grid_layout, int firstCol,
const DoubleProperties& valueProperties, SampleEditorController* ec,
bool vertically, bool addSpacer);
const DoubleProperties& valueProperties, bool vertically,
bool addSpacer);
//! Create spin boxes for the DoubleProperties and connect them to the given setNewValue()
void addMultiPropertyToGrid(QGridLayout* m_grid_layout, int firstCol,
......@@ -41,8 +41,7 @@ void addMultiPropertyToGrid(QGridLayout* m_grid_layout, int firstCol,
bool vertically, bool addSpacer);
void addMultiPropertyToGrid(QGridLayout* m_grid_layout, int firstCol,
const DoubleProperties& valueProperties, SampleEditorController* ec,
bool addSpacer);
const DoubleProperties& valueProperties, bool addSpacer);
QWidget* createWidgetForItemWithParticles(QWidget* parentWidget,
ItemWithParticles* itemWithParticles, bool allowAbundance,
......
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