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
129584a5
Commit
129584a5
authored
Jan 27, 2009
by
Oliver Bock
Browse files
Marker should be drawn after all other items
parent
172d8f2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pulsescopewidget.cpp
View file @
129584a5
...
...
@@ -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
);
}
...
...
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