diff options
Diffstat (limited to 'clients/tde/src/widgets')
-rw-r--r-- | clients/tde/src/widgets/tracewidget.cpp | 5 | ||||
-rw-r--r-- | clients/tde/src/widgets/tracewidget.h | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/clients/tde/src/widgets/tracewidget.cpp b/clients/tde/src/widgets/tracewidget.cpp index 911bf70..b814e43 100644 --- a/clients/tde/src/widgets/tracewidget.cpp +++ b/clients/tde/src/widgets/tracewidget.cpp @@ -667,6 +667,7 @@ void TraceWidget::setDisplayLimits(uint traceNumber, TQRectF limits) { m_traceArray[traceNumber]->topEdge = limits.y(); m_traceArray[traceNumber]->bottomEdge = limits.height(); + m_graticuleWidget->updateGraticule(); m_graticuleWidget->repaint(true); updateTraceText(); updateCursorText(); @@ -761,13 +762,13 @@ void TraceWidget::setPositions(uint traceNumber, TQDoubleArray& tqda) { m_graticuleWidget->repaint(true); } -TQColor& TraceWidget::traceColor(uint traceNumber) { +TQColor TraceWidget::traceColor(uint traceNumber) { VERIFY_TRACE_ARRAY_SIZE return m_traceArray[traceNumber]->color; } -void TraceWidget::setTraceColor(uint traceNumber, TQColor& color) { +void TraceWidget::setTraceColor(uint traceNumber, TQColor color) { VERIFY_TRACE_ARRAY_SIZE m_traceArray[traceNumber]->color = color; diff --git a/clients/tde/src/widgets/tracewidget.h b/clients/tde/src/widgets/tracewidget.h index b569074..0536ee9 100644 --- a/clients/tde/src/widgets/tracewidget.h +++ b/clients/tde/src/widgets/tracewidget.h @@ -174,8 +174,8 @@ class TraceWidget : public TQWidget void setSamples(uint traceNumber, TQDoubleArray&); TQDoubleArray& positions(uint traceNumber); void setPositions(uint traceNumber, TQDoubleArray&); - TQColor& traceColor(uint traceNumber); - void setTraceColor(uint traceNumber, TQColor&); + TQColor traceColor(uint traceNumber); + void setTraceColor(uint traceNumber, TQColor); bool traceEnabled(uint traceNumber); void setTraceEnabled(uint traceNumber, bool enabled, bool showText=true); TQString traceName(uint traceNumber); |