summaryrefslogtreecommitdiffstats
path: root/clients/tde/src/part/scope
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-16 21:59:38 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-16 21:59:38 -0500
commit9c5e2aa99427fe125c631d4753b1f944992d8c03 (patch)
tree61840d3ba80140ba31daa54bd86b0c472cd8bd51 /clients/tde/src/part/scope
parente7ef2071e5f64e1a34201961592750a410060f1f (diff)
downloadulab-9c5e2aa99427fe125c631d4753b1f944992d8c03.tar.gz
ulab-9c5e2aa99427fe125c631d4753b1f944992d8c03.zip
Fix trace widget
Diffstat (limited to 'clients/tde/src/part/scope')
-rw-r--r--clients/tde/src/part/scope/part.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clients/tde/src/part/scope/part.cpp b/clients/tde/src/part/scope/part.cpp
index 75bf488..04fdb55 100644
--- a/clients/tde/src/part/scope/part.cpp
+++ b/clients/tde/src/part/scope/part.cpp
@@ -818,6 +818,9 @@ void ScopePart::saveWaveforms() {
ds << m_traceWidget->samples(traceno-1);
ds << m_traceWidget->positions(traceno-1);
}
+ for (int cursorno=0; cursorno<4; cursorno++) {
+ ds << m_traceWidget->cursorPosition(cursorno);
+ }
}
}
@@ -852,6 +855,11 @@ void ScopePart::recallWaveforms() {
m_base->traceZoomWidget->setSamples(traceno-1, values);
m_base->traceZoomWidget->setPositions(traceno-1, positions);
}
+ for (int cursorno=0; cursorno<4; cursorno++) {
+ double cursorPos;
+ ds >> cursorPos;
+ m_traceWidget->setCursorPosition(cursorno, cursorPos);
+ }
updateGraticule();
postProcessTrace();
// HACK