Commit 40ff2a5b authored by Jan Möbius's avatar Jan Möbius

Revert "Merge branch 'linewidth-backport-qt-before-5.7' into 'master'"

This reverts merge request !12
parent 1cc95194
......@@ -71,8 +71,7 @@ OMPropertyVisualizerVector2<MeshT, VectorType>::OMPropertyVisualizerVector2(Mesh
{
w->vectors_edges_rb->hide();
}
// starting with Qt 5.7, use QOverload<double>::of(&QDoubleSpinBox::valueChanged)
this->connect(w->lineWidth, static_cast<void (QDoubleSpinBox::*)(double)>(&QDoubleSpinBox::valueChanged),
this->connect(w->lineWidth, QOverload<double>::of(&QDoubleSpinBox::valueChanged),
[this](double value) {lineNode->set_line_width(value);});
}
......
......@@ -70,8 +70,7 @@ OMPropertyVisualizerVector<MeshT>::OMPropertyVisualizerVector(MeshT* _mesh, int
{
w->vectors_edges_rb->hide();
}
// starting with Qt 5.7, use QOverload<double>::of(&QDoubleSpinBox::valueChanged)
this->connect(w->lineWidth, static_cast<void (QDoubleSpinBox::*)(double)>(&QDoubleSpinBox::valueChanged),
this->connect(w->lineWidth, QOverload<double>::of(&QDoubleSpinBox::valueChanged),
[this](double value) {lineNode->set_line_width(value);});
}
......
......@@ -67,9 +67,7 @@ OVMPropertyVisualizerVector<MeshT>::OVMPropertyVisualizerVector(MeshT* _mesh, in
PluginFunctions::getObject(objectID, bod);
lineNode = new ACG::SceneGraph::LineNode(ACG::SceneGraph::LineNode::LineSegmentsMode, bod->baseNode());
w->vectors_edges_rb->hide();
// starting with Qt 5.7, use QOverload<double>::of(&QDoubleSpinBox::valueChanged)
this->connect(w->lineWidth, static_cast<void (QDoubleSpinBox::*)(double)>(&QDoubleSpinBox::valueChanged),
this->connect(w->lineWidth, QOverload<double>::of(&QDoubleSpinBox::valueChanged),
[this](double value) {lineNode->set_line_width(value);});
}
......
Markdown is supported
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