Commit 3aba520e authored by Martin Heistermann's avatar Martin Heistermann

backport linewidth feature to qt < 5.7, as per OpenFlipper-Free!161

parent c1b50067
......@@ -71,7 +71,8 @@ OMPropertyVisualizerVector2<MeshT, VectorType>::OMPropertyVisualizerVector2(Mesh
{
w->vectors_edges_rb->hide();
}
this->connect(w->lineWidth, QOverload<double>::of(&QDoubleSpinBox::valueChanged),
// starting with Qt 5.7, use QOverload<double>::of(&QDoubleSpinBox::valueChanged)
this->connect(w->lineWidth, static_cast<void (QDoubleSpinBox::*)(double)>(&QDoubleSpinBox::valueChanged),
[this](double value) {lineNode->set_line_width(value);});
}
......
......@@ -70,7 +70,8 @@ OMPropertyVisualizerVector<MeshT>::OMPropertyVisualizerVector(MeshT* _mesh, int
{
w->vectors_edges_rb->hide();
}
this->connect(w->lineWidth, QOverload<double>::of(&QDoubleSpinBox::valueChanged),
// starting with Qt 5.7, use QOverload<double>::of(&QDoubleSpinBox::valueChanged)
this->connect(w->lineWidth, static_cast<void (QDoubleSpinBox::*)(double)>(&QDoubleSpinBox::valueChanged),
[this](double value) {lineNode->set_line_width(value);});
}
......
......@@ -67,7 +67,9 @@ 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();
this->connect(w->lineWidth, QOverload<double>::of(&QDoubleSpinBox::valueChanged),
// starting with Qt 5.7, use QOverload<double>::of(&QDoubleSpinBox::valueChanged)
this->connect(w->lineWidth, static_cast<void (QDoubleSpinBox::*)(double)>(&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