summaryrefslogtreecommitdiffstats
path: root/src/knemod/interfacestatusdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/knemod/interfacestatusdialog.cpp')
-rw-r--r--src/knemod/interfacestatusdialog.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/knemod/interfacestatusdialog.cpp b/src/knemod/interfacestatusdialog.cpp
index d170b88..f0d132a 100644
--- a/src/knemod/interfacestatusdialog.cpp
+++ b/src/knemod/interfacestatusdialog.cpp
@@ -66,7 +66,7 @@ InterfaceStatusDialog::InterfaceStatusDialog( Interface* interface, TQWidget* pa
}
// Restore window size and position.
- KConfig* config = new KConfig( "knemorc", false );
+ TDEConfig* config = new TDEConfig( "knemorc", false );
if ( config->hasGroup( "Interface_" + mInterface->getName() ) )
{
config->setGroup( "Interface_" + mInterface->getName() );
@@ -95,7 +95,7 @@ InterfaceStatusDialog::~InterfaceStatusDialog()
delete mTimer;
// Store window size and position.
- KConfig* config = new KConfig( "knemorc", false );
+ TDEConfig* config = new TDEConfig( "knemorc", false );
if ( config->hasGroup( "Interface_" + mInterface->getName() ) )
{
config->setGroup( "Interface_" + mInterface->getName() );
@@ -212,9 +212,9 @@ void InterfaceStatusDialog::updateDialog()
textLabelBytesSend->setText( data.txString );
textLabelBytesReceived->setText( data.rxString );
unsigned long bytesPerSecond = data.outgoingBytes / mInterface->getGeneralData().pollInterval;
- textLabelSpeedSend->setText( KIO::convertSize( bytesPerSecond ) + i18n( "/s" ) );
+ textLabelSpeedSend->setText( TDEIO::convertSize( bytesPerSecond ) + i18n( "/s" ) );
bytesPerSecond = data.incomingBytes / mInterface->getGeneralData().pollInterval;
- textLabelSpeedReceived->setText( KIO::convertSize( bytesPerSecond ) + i18n( "/s" ) );
+ textLabelSpeedReceived->setText( TDEIO::convertSize( bytesPerSecond ) + i18n( "/s" ) );
if ( data.wirelessDevice )
{
@@ -290,19 +290,19 @@ void InterfaceStatusDialog::statisticsChanged()
}
const StatisticEntry* entry = statistics->getCurrentDay();
- textLabelTodaySent->setText( KIO::convertSize( entry->txBytes ) );
- textLabelTodayReceived->setText( KIO::convertSize( entry->rxBytes ) );
- textLabelTodayTotal->setText( KIO::convertSize( entry->txBytes + entry->rxBytes ) );
+ textLabelTodaySent->setText( TDEIO::convertSize( entry->txBytes ) );
+ textLabelTodayReceived->setText( TDEIO::convertSize( entry->rxBytes ) );
+ textLabelTodayTotal->setText( TDEIO::convertSize( entry->txBytes + entry->rxBytes ) );
entry = statistics->getCurrentMonth();
- textLabelMonthSent->setText( KIO::convertSize( entry->txBytes ) );
- textLabelMonthReceived->setText( KIO::convertSize( entry->rxBytes ) );
- textLabelMonthTotal->setText( KIO::convertSize( entry->txBytes + entry->rxBytes ) );
+ textLabelMonthSent->setText( TDEIO::convertSize( entry->txBytes ) );
+ textLabelMonthReceived->setText( TDEIO::convertSize( entry->rxBytes ) );
+ textLabelMonthTotal->setText( TDEIO::convertSize( entry->txBytes + entry->rxBytes ) );
entry = statistics->getCurrentYear();
- textLabelYearSent->setText( KIO::convertSize( entry->txBytes ) );
- textLabelYearReceived->setText( KIO::convertSize( entry->rxBytes ) );
- textLabelYearTotal->setText( KIO::convertSize( entry->txBytes + entry->rxBytes ) );
+ textLabelYearSent->setText( TDEIO::convertSize( entry->txBytes ) );
+ textLabelYearReceived->setText( TDEIO::convertSize( entry->rxBytes ) );
+ textLabelYearTotal->setText( TDEIO::convertSize( entry->txBytes + entry->rxBytes ) );
}
#include "interfacestatusdialog.moc"