summaryrefslogtreecommitdiffstats
path: root/src/knemod/interfacestatisticsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/knemod/interfacestatisticsdialog.cpp')
-rw-r--r--src/knemod/interfacestatisticsdialog.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/knemod/interfacestatisticsdialog.cpp b/src/knemod/interfacestatisticsdialog.cpp
index 55ee49a..0b07e76 100644
--- a/src/knemod/interfacestatisticsdialog.cpp
+++ b/src/knemod/interfacestatisticsdialog.cpp
@@ -17,9 +17,9 @@
Boston, MA 02110-1301, USA.
*/
-#include <qtable.h>
-#include <qdatetime.h>
-#include <qpushbutton.h>
+#include <tqtable.h>
+#include <tqdatetime.h>
+#include <tqpushbutton.h>
#include <klocale.h>
#include <kio/global.h>
@@ -36,16 +36,16 @@
* if we walk back in time, so better not play with the system date...
*/
-InterfaceStatisticsDialog::InterfaceStatisticsDialog( Interface* interface, QWidget* parent, const char* name )
- : InterfaceStatisticsDlg( parent, name ),
+InterfaceStatisticsDialog::InterfaceStatisticsDialog( Interface* interface, TQWidget* tqparent, const char* name )
+ : InterfaceStatisticsDlg( tqparent, name ),
mInterface( interface )
{
setIcon( SmallIcon( "knemo" ) );
setCaption( interface->getName() + " " + i18n( "Statistics" ) );
- connect( buttonClearDaily, SIGNAL( clicked() ), SIGNAL( clearDailyStatisticsClicked() ) );
- connect( buttonClearMonthly, SIGNAL( clicked() ), SIGNAL( clearMonthlyStatisticsClicked() ) );
- connect( buttonClearYearly, SIGNAL( clicked() ), SIGNAL( clearYearlyStatisticsClicked() ) );
+ connect( buttonClearDaily, TQT_SIGNAL( clicked() ), TQT_SIGNAL( clearDailyStatisticsClicked() ) );
+ connect( buttonClearMonthly, TQT_SIGNAL( clicked() ), TQT_SIGNAL( clearMonthlyStatisticsClicked() ) );
+ connect( buttonClearYearly, TQT_SIGNAL( clicked() ), TQT_SIGNAL( clearYearlyStatisticsClicked() ) );
}
InterfaceStatisticsDialog::~InterfaceStatisticsDialog()
@@ -54,13 +54,13 @@ InterfaceStatisticsDialog::~InterfaceStatisticsDialog()
void InterfaceStatisticsDialog::updateDays()
{
- QPtrList<StatisticEntry> dayStatistics = mInterface->getStatistics()->getDayStatistics();
+ TQPtrList<StatisticEntry> dayStatistics = mInterface->getStatistics()->getDayStatistics();
StatisticEntry* iterator = dayStatistics.first();
tableDaily->setNumRows( dayStatistics.count() );
int row = 0;
while ( iterator )
{
- QDate date( iterator->year, iterator->month, iterator->day );
+ TQDate date( iterator->year, iterator->month, iterator->day );
tableDaily->verticalHeader()->setLabel( row, KGlobal::locale()->formatDate( date, true ) );
tableDaily->setText( row, 0, KIO::convertSize( iterator->txBytes ) );
tableDaily->setText( row, 1, KIO::convertSize( iterator->rxBytes ) );
@@ -75,14 +75,14 @@ void InterfaceStatisticsDialog::updateDays()
void InterfaceStatisticsDialog::updateMonths()
{
- QPtrList<StatisticEntry> monthStatistics = mInterface->getStatistics()->getMonthStatistics();
+ TQPtrList<StatisticEntry> monthStatistics = mInterface->getStatistics()->getMonthStatistics();
StatisticEntry* iterator = monthStatistics.first();
tableMonthly->setNumRows( monthStatistics.count() );
int row = 0;
while ( iterator )
{
const KCalendarSystem* calendar = KGlobal::locale()->calendar();
- QString monthName = calendar->monthName( iterator->month, iterator->year ) + " " + QString::number( iterator->year );
+ TQString monthName = calendar->monthName( iterator->month, iterator->year ) + " " + TQString::number( iterator->year );
tableMonthly->verticalHeader()->setLabel( row, monthName );
tableMonthly->setText( row, 0, KIO::convertSize( iterator->txBytes ) );
tableMonthly->setText( row, 1, KIO::convertSize( iterator->rxBytes ) );
@@ -97,13 +97,13 @@ void InterfaceStatisticsDialog::updateMonths()
void InterfaceStatisticsDialog::updateYears()
{
- QPtrList<StatisticEntry> yearStatistics = mInterface->getStatistics()->getYearStatistics();
+ TQPtrList<StatisticEntry> yearStatistics = mInterface->getStatistics()->getYearStatistics();
StatisticEntry* iterator = yearStatistics.first();
tableYearly->setNumRows( yearStatistics.count() );
int row = 0;
while ( iterator )
{
- tableYearly->verticalHeader()->setLabel( row, QString::number( iterator->year ) );
+ tableYearly->verticalHeader()->setLabel( row, TQString::number( iterator->year ) );
tableYearly->setText( row, 0, KIO::convertSize( iterator->txBytes ) );
tableYearly->setText( row, 1, KIO::convertSize( iterator->rxBytes ) );
tableYearly->setText( row, 2, KIO::convertSize( iterator->rxBytes + iterator->txBytes ) );