Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
einsteinathome
pulsatingscience
Commits
7f130bed
Commit
7f130bed
authored
Sep 12, 2017
by
Oliver Bock
Browse files
Hide marker (still determines y-axis height) and fix it
parent
d1759ca6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/pulsescopewidget.cpp
View file @
7f130bed
...
...
@@ -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
);
}
src/pulsescopewidget.h
View file @
7f130bed
...
...
@@ -43,7 +43,6 @@ public:
public
slots
:
void
drawCurve
(
const
QVector
<
double
>&
vector
);
void
setMarker
(
double
position
);
private:
QGraphicsScene
m_scene
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment