diff options
author | Timothy Pearson <[email protected]> | 2011-12-19 11:58:08 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-19 11:58:08 -0600 |
commit | 1de96857f5b0ed5d4a36e9486ffc8c7f8c802f98 (patch) | |
tree | e24fdc0514249de1233dd5dc07f09d07a35f4269 /kppp/logview | |
parent | 089118c18533dfa3e6ce5065dbebdd4db94051f1 (diff) | |
download | tdenetwork-1de96857f5b0ed5d4a36e9486ffc8c7f8c802f98.tar.gz tdenetwork-1de96857f5b0ed5d4a36e9486ffc8c7f8c802f98.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'kppp/logview')
-rw-r--r-- | kppp/logview/export.cpp | 2 | ||||
-rw-r--r-- | kppp/logview/monthly.cpp | 48 |
2 files changed, 25 insertions, 25 deletions
diff --git a/kppp/logview/export.cpp b/kppp/logview/export.cpp index a3d55686..f236be50 100644 --- a/kppp/logview/export.cpp +++ b/kppp/logview/export.cpp @@ -219,7 +219,7 @@ void CSVExport::setFinishCode() { /***** HTMLExport *****/ HTMLExport::HTMLExport(const TQString &filename, const TQString &date) : Export(filename) { - TQString title = i18n("Connection log for %1").tqarg(date); + TQString title = i18n("Connection log for %1").arg(date); buffer = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"; buffer.append("<html>\n<head>\n <title>"+title+"</title>\n"); buffer.append(TQString::fromLatin1(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=") diff --git a/kppp/logview/monthly.cpp b/kppp/logview/monthly.cpp index 030cd3ba..fee59878 100644 --- a/kppp/logview/monthly.cpp +++ b/kppp/logview/monthly.cpp @@ -38,9 +38,9 @@ static void formatBytes(double bytes, TQString &result) { if(bytes < 1024) result.setNum(bytes); else if(bytes < 1024*1024) - result = i18n("%1 KB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1)); + result = i18n("%1 KB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1)); else - result = i18n("%1 MB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1)); + result = i18n("%1 MB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1)); } static void formatBytesMonth(double bytes, TQString &result) { @@ -54,23 +54,23 @@ static void formatBytesMonth(double bytes, TQString &result) { if(bytes < 1024) result.setNum(bytes); else if(bytes < 1024*1024) - result = i18n("%1 KB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1)); + result = i18n("%1 KB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0, 1)); else - result = i18n("%1 MB").tqarg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1)); + result = i18n("%1 MB").arg(KGlobal::locale()->formatNumber((float)bytes / 1024.0 / 1024.0, 1)); } static void formatDuration(int seconds, TQString &result) { TQString sec; sec.sprintf("%02d", seconds%60); if(seconds < 60) - result = i18n("%1s").tqarg(sec); + result = i18n("%1s").arg(sec); else if(seconds < 3600) - result = i18n("%1m %2s").tqarg(seconds/60).tqarg(sec); + result = i18n("%1m %2s").arg(seconds/60).arg(sec); else result = i18n("%1h %2m %3s") - .tqarg(seconds/3600) - .tqarg((seconds % 3600)/60) - .tqarg(sec); + .arg(seconds/3600) + .arg((seconds % 3600)/60) + .arg(sec); } static void formatDurationMonth(int seconds, TQString &result) { @@ -84,14 +84,14 @@ static void formatDurationMonth(int seconds, TQString &result) { TQString sec; sec.sprintf("%02d", seconds%60); if(seconds < 60) - result = i18n("%1s").tqarg(sec); + result = i18n("%1s").arg(sec); else if(seconds < 3600) - result = i18n("%1m %2s").tqarg(seconds/60).tqarg(sec); + result = i18n("%1m %2s").arg(seconds/60).arg(sec); else result = i18n("%1h %2m %3s") - .tqarg(seconds/3600) - .tqarg((seconds % 3600)/60) - .tqarg(sec); + .arg(seconds/3600) + .arg((seconds % 3600)/60) + .arg(sec); } static void costsMonth(double costs, double &result) { @@ -117,7 +117,7 @@ public: { } virtual void paintCell( TQPainter *p, const TQColorGroup & cg, - int column, int width, int tqalignment ); + int column, int width, int alignment ); virtual TQString key(int, bool) const; @@ -125,9 +125,9 @@ public: }; void LogListItem::paintCell( TQPainter *p, const TQColorGroup & cg, - int column, int width, int tqalignment ) + int column, int width, int alignment ) { - TQListViewItem::paintCell(p, cg, column, width, tqalignment); + TQListViewItem::paintCell(p, cg, column, width, alignment); // double line above sum //if(!li) { @@ -426,13 +426,13 @@ void MonthlyWidget::plotMonth() { if(lv->childCount() > 0) { exportBttn->setEnabled(true); // export possibility t = i18n("Connection log for %1 %2") - .tqarg(calendar->monthName(startDate)) - .tqarg(calendar->year(startDate)); + .arg(calendar->monthName(startDate)) + .arg(calendar->year(startDate)); } else { exportBttn->setEnabled(false); // nothing to export t = i18n("No connection log for %1 %2 available") - .tqarg(calendar->monthName(startDate)) - .tqarg(calendar->year(startDate)); + .arg(calendar->monthName(startDate)) + .arg(calendar->year(startDate)); } title->setText(t); @@ -465,8 +465,8 @@ void MonthlyWidget::currentMonth() { void MonthlyWidget::exportWizard() { const KCalendarSystem * calendar = KGlobal::locale()->calendar(); TQString date = TQString::fromLatin1("%1-%2") // e.g.: June-2001 - .tqarg(calendar->monthName(periodeFirst())) - .tqarg(calendar->year(periodeFirst())); + .arg(calendar->monthName(periodeFirst())) + .arg(calendar->year(periodeFirst())); ExportWizard *wizard = new ExportWizard(0, date); wizard->exec(); @@ -598,7 +598,7 @@ void MonthlyWidget::exportWizard() { TQString datetime = KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), true); exportIFace->addEmptyLine(); - exportIFace->addDataline(i18n("Monthly estimates (%1)").tqarg(datetime), + exportIFace->addDataline(i18n("Monthly estimates (%1)").arg(datetime), TQString(), TQString(), TQString(), m_duration, m_costs, m_bin, m_bout); } |