Commit 7f130bed authored by Oliver Bock's avatar Oliver Bock
Browse files

Hide marker (still determines y-axis height) and fix it

parent d1759ca6
......@@ -53,7 +53,7 @@ PulseScopeWidget::PulseScopeWidget(QWidget *parent) : QGraphicsView(parent),
m_scopeSizeV = 1.0;
m_path = NULL;
m_marker = m_scene.addLine(0.0, 0.0, 0.0, m_scopeSizeV, QPen(Qt::red));
m_marker = m_scene.addLine(0.0, 0.0, 0.0, m_scopeSizeV);
m_marker->setZValue(1);
setScene(&m_scene);
......@@ -89,7 +89,3 @@ void PulseScopeWidget::drawCurve(const QVector<double>& vector)
m_path->setPath(pulsePath);
}
}
void PulseScopeWidget::setMarker(double position) {
m_marker->setLine(position, 0.0, position, m_scopeSizeV);
}
......@@ -43,7 +43,6 @@ public:
public slots:
void drawCurve(const QVector<double>& vector);
void setMarker(double position);
private:
QGraphicsScene m_scene;
......
Supports Markdown
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