Commit 129584a5 authored by Oliver Bock's avatar Oliver Bock

Marker should be drawn after all other items

parent 172d8f2f
......@@ -57,11 +57,6 @@ void PulseScopeWidget::drawCurve(const QVector<float>& vector)
{
m_data = vector;
if(m_marker.scene() == 0) {
m_marker.setLine(0.0, 0.0, 0.0, m_scopeSizeV);
m_scene.addItem(&m_marker);
}
// TODO: proof of concept only!
QVector<float> checkMax(m_data);
......@@ -77,6 +72,11 @@ void PulseScopeWidget::drawCurve(const QVector<float>& vector)
}
m_scene.addPath(pulsePath, QPen(Qt::green));
if(m_marker.scene() == 0) {
m_marker.setLine(0.0, 0.0, 0.0, m_scopeSizeV);
m_scene.addItem(&m_marker);
}
fitInView(m_scene.itemsBoundingRect(), Qt::IgnoreAspectRatio);
}
......
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