summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/SensorDisplayLib/SignalPlotter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ksysguard/gui/SensorDisplayLib/SignalPlotter.cc')
-rw-r--r--ksysguard/gui/SensorDisplayLib/SignalPlotter.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ksysguard/gui/SensorDisplayLib/SignalPlotter.cc b/ksysguard/gui/SensorDisplayLib/SignalPlotter.cc
index 70d4d1900..48cc5489d 100644
--- a/ksysguard/gui/SensorDisplayLib/SignalPlotter.cc
+++ b/ksysguard/gui/SensorDisplayLib/SignalPlotter.cc
@@ -134,8 +134,8 @@ void SignalPlotter::reorderBeams( const TQValueList<int>& newOrder )
for(uint i = 0; i < newOrder.count(); i++) {
int newIndex = newOrder[i];
- newBeamData.append(mBeamData.at(newIndex));
- newBeamColor.append(*mBeamColor.at(newIndex));
+ newBeamData.append(mBeamData.tqat(newIndex));
+ newBeamColor.append(*mBeamColor.tqat(newIndex));
}
mBeamData = newBeamData;
mBeamColor = newBeamColor;
@@ -159,7 +159,7 @@ TQValueList<TQColor> &SignalPlotter::beamColors()
void SignalPlotter::removeBeam( uint pos )
{
- mBeamColor.remove( mBeamColor.at( pos ) );
+ mBeamColor.remove( mBeamColor.tqat( pos ) );
double *p = mBeamData.take( pos );
delete [] p;
}
@@ -374,7 +374,7 @@ void SignalPlotter::updateDataBuffers()
memset( nd, 0, sizeof( double ) * ( newSampleNum - overlap ) );
// copy overlap from old buffer to new buffer
- memcpy( nd + ( newSampleNum - overlap ), mBeamData.at( i ) +
+ memcpy( nd + ( newSampleNum - overlap ), mBeamData.tqat( i ) +
( mSamples - overlap ), overlap * sizeof( double ) );
double *p = mBeamData.take( i );