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
a14621c4
Commit
a14621c4
authored
Feb 20, 2009
by
Oliver Bock
Browse files
Start scope at actual amplitude value (not at origin)
parent
d07db042
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pulsescopewidget.cpp
View file @
a14621c4
...
...
@@ -58,7 +58,7 @@ PulseScopeWidget::PulseScopeWidget(QWidget *parent) : QGraphicsView(parent),
setScene
(
&
m_scene
);
m_data
.
fill
(
0.0
,
m_scopeSizeH
);
m_data
.
fill
(
0.0
,
qRound
(
m_scopeSizeH
)
)
;
drawCurve
(
m_data
);
}
...
...
@@ -78,8 +78,8 @@ void PulseScopeWidget::drawCurve(const QVector<double>& vector)
{
m_data
=
vector
;
QPainterPath
pulsePath
(
QPoint
(
0.0
,
m_scopeSizeV
));
for
(
int
i
=
0
;
i
<
m_scopeSizeH
;
++
i
)
{
QPainterPath
pulsePath
(
QPoint
F
(
0.0
,
m_scopeSizeV
-
m_data
.
at
(
0
)
));
for
(
int
i
=
1
;
i
<
m_scopeSizeH
;
++
i
)
{
pulsePath
.
lineTo
(
i
,
m_scopeSizeV
-
m_data
.
at
(
i
));
}
if
(
m_path
==
NULL
)
{
...
...
Write
Preview
Markdown
is supported
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