Commit 39647a64 authored by Oliver Bock's avatar Oliver Bock
Browse files

Draw x-axis

parent 52decc01
......@@ -52,6 +52,7 @@ PulseScopeWidget::PulseScopeWidget(QWidget *parent) : QGraphicsView(parent),
m_scopeSizeH = 360.0 * PERIODS;
m_scopeSizeV = 10.0;
m_pathZero = NULL;
m_pathLHO = NULL;
m_pathLLO = NULL;
m_pathVirgo = NULL;
......@@ -61,9 +62,7 @@ PulseScopeWidget::PulseScopeWidget(QWidget *parent) : QGraphicsView(parent),
setScene(&m_scene);
m_data.fill(0.0, qRound(m_scopeSizeH));
drawCurve(m_pathLHO, m_data, "black");
drawCurve(m_pathLLO, m_data, "black");
drawCurve(m_pathVirgo, m_data, "black");
drawCurve(m_pathZero, m_data, "white");
}
PulseScopeWidget::~PulseScopeWidget()
......
......@@ -50,6 +50,7 @@ private:
QGraphicsScene m_scene;
QVector<double> m_data;
QGraphicsPathItem *m_pathZero;
QGraphicsPathItem *m_pathLHO;
QGraphicsPathItem *m_pathLLO;
QGraphicsPathItem *m_pathVirgo;
......
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