summaryrefslogtreecommitdiffstats
path: root/src/knemod/interfacestatisticsdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 18:16:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 18:16:06 +0000
commit02a6c8f36311eb6225066df35adf8d00f9cd942b (patch)
treeceb91c373877f7a69209e184c81b53dc6f9402d7 /src/knemod/interfacestatisticsdialog.cpp
parent09e6e27fe85b2efb28072f1c81f6581fa6837d92 (diff)
downloadknemo-02a6c8f36311eb6225066df35adf8d00f9cd942b.tar.gz
knemo-02a6c8f36311eb6225066df35adf8d00f9cd942b.zip
TQt4 port knemo
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knemo@1238869 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 ) );