summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/SensorDisplayLib/DancingBars.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:46:05 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:46:05 -0600
commit73c08b592db45af554b9f21029bc549d70f683ab (patch)
tree122898ea951e59fdc4419b3c84b7a6c2dd0bb5f7 /ksysguard/gui/SensorDisplayLib/DancingBars.cc
parente81bdee8ae92d6eeb82daa8c0a0e46bf37f4a6da (diff)
downloadtdebase-73c08b592db45af554b9f21029bc549d70f683ab.tar.gz
tdebase-73c08b592db45af554b9f21029bc549d70f683ab.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'ksysguard/gui/SensorDisplayLib/DancingBars.cc')
-rw-r--r--ksysguard/gui/SensorDisplayLib/DancingBars.cc40
1 files changed, 20 insertions, 20 deletions
diff --git a/ksysguard/gui/SensorDisplayLib/DancingBars.cc b/ksysguard/gui/SensorDisplayLib/DancingBars.cc
index 7163f9b99..3917fc86b 100644
--- a/ksysguard/gui/SensorDisplayLib/DancingBars.cc
+++ b/ksysguard/gui/SensorDisplayLib/DancingBars.cc
@@ -53,7 +53,7 @@ DancingBars::DancingBars( TQWidget *parent, const char *name, const TQString &ti
else
mPlotter = new BarGraph( frame() );
- setMinimumSize( tqsizeHint() );
+ setMinimumSize( sizeHint() );
/* All RMB clicks to the mPlotter widget will be handled by
* SensorDisplay::eventFilter. */
@@ -94,11 +94,11 @@ void DancingBars::configureSettings()
TQValueList< TQStringList > list;
for ( uint i = mBars - 1; i < mBars; i-- ) {
TQStringList entry;
- entry << sensors().tqat( i )->hostName();
- entry << KSGRD::SensorMgr->translateSensor( sensors().tqat( i )->name() );
+ entry << sensors().at( i )->hostName();
+ entry << KSGRD::SensorMgr->translateSensor( sensors().at( i )->name() );
entry << mPlotter->footers[ i ];
- entry << KSGRD::SensorMgr->translateUnit( sensors().tqat( i )->unit() );
- entry << ( sensors().tqat( i )->isOk() ? i18n( "OK" ) : i18n( "Error" ) );
+ entry << KSGRD::SensorMgr->translateUnit( sensors().at( i )->unit() );
+ entry << ( sensors().at( i )->isOk() ? i18n( "OK" ) : i18n( "Error" ) );
list.append( entry );
}
@@ -135,8 +135,8 @@ void DancingBars::applySettings()
for ( uint i = 0; i < sensors().count(); i++ ) {
bool found = false;
for ( it = list.begin(); it != list.end(); ++it ) {
- if ( (*it)[ 0 ] == sensors().tqat( i )->hostName() &&
- (*it)[ 1 ] == KSGRD::SensorMgr->translateSensor( sensors().tqat( i )->name() ) ) {
+ if ( (*it)[ 0 ] == sensors().at( i )->hostName() &&
+ (*it)[ 1 ] == KSGRD::SensorMgr->translateSensor( sensors().at( i )->name() ) ) {
mPlotter->footers[ i ] = (*it)[ 2 ];
found = true;
break;
@@ -147,7 +147,7 @@ void DancingBars::applySettings()
removeSensor( i );
}
- tqrepaint();
+ repaint();
setModified( true );
}
@@ -158,7 +158,7 @@ void DancingBars::applyStyle()
mPlotter->backgroundColor = KSGRD::Style->backgroundColor();
mPlotter->fontSize = KSGRD::Style->fontSize();
- tqrepaint();
+ repaint();
setModified( true );
}
@@ -185,8 +185,8 @@ bool DancingBars::addSensor( const TQString &hostName, const TQString &name,
TQString tooltip;
for ( uint i = 0; i < mBars; ++i ) {
tooltip += TQString( "%1%2:%3" ).arg( i != 0 ? "\n" : "" )
- .arg( sensors().tqat( i )->hostName() )
- .arg( sensors().tqat( i )->name() );
+ .arg( sensors().at( i )->hostName() )
+ .arg( sensors().at( i )->name() );
}
TQToolTip::remove( mPlotter );
TQToolTip::add( mPlotter, tooltip );
@@ -209,8 +209,8 @@ bool DancingBars::removeSensor( uint pos )
TQString tooltip;
for ( uint i = 0; i < mBars; ++i ) {
tooltip += TQString( "%1%2:%3" ).arg( i != 0 ? "\n" : "" )
- .arg( sensors().tqat( i )->hostName() )
- .arg( sensors().tqat( i )->name() );
+ .arg( sensors().at( i )->hostName() )
+ .arg( sensors().at( i )->name() );
}
TQToolTip::remove( mPlotter );
TQToolTip::add( mPlotter, tooltip );
@@ -231,12 +231,12 @@ void DancingBars::resizeEvent( TQResizeEvent* )
frame()->setGeometry( 0, 0, width(), height() );
}
-TQSize DancingBars::tqsizeHint()
+TQSize DancingBars::sizeHint()
{
if ( noFrame() )
- return ( mPlotter->tqsizeHint() );
+ return ( mPlotter->sizeHint() );
else
- return ( frame()->tqsizeHint() );
+ return ( frame()->sizeHint() );
}
void DancingBars::answerReceived( int id, const TQString &answer )
@@ -272,7 +272,7 @@ void DancingBars::answerReceived( int id, const TQString &answer )
mPlotter->changeRange( info.min(), info.max() );
}
- sensors().tqat( id - 100 )->setUnit( info.unit() );
+ sensors().at( id - 100 )->setUnit( info.unit() );
}
}
@@ -331,9 +331,9 @@ bool DancingBars::saveSettings( TQDomDocument &doc, TQDomElement &element,
for ( uint i = 0; i < mBars; ++i ) {
TQDomElement beam = doc.createElement( "beam" );
element.appendChild( beam );
- beam.setAttribute( "hostName", sensors().tqat( i )->hostName() );
- beam.setAttribute( "sensorName", sensors().tqat( i )->name() );
- beam.setAttribute( "sensorType", sensors().tqat( i )->type() );
+ beam.setAttribute( "hostName", sensors().at( i )->hostName() );
+ beam.setAttribute( "sensorName", sensors().at( i )->name() );
+ beam.setAttribute( "sensorType", sensors().at( i )->type() );
beam.setAttribute( "sensorDescr", mPlotter->footers[ i ] );
}