From f78838f2f736acc2b235d8b680f3379a07a6d372 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Dec 2011 11:59:34 -0600 Subject: Remove additional unneeded tq method conversions --- kbabel/commonui/projectprefwidgets.cpp | 10 +++++----- kbabel/commonui/projectwizard.cpp | 2 +- kbabel/commonui/roughtransdlg.cpp | 14 +++++++------- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'kbabel/commonui') diff --git a/kbabel/commonui/projectprefwidgets.cpp b/kbabel/commonui/projectprefwidgets.cpp index b77a1811..cb899dd3 100644 --- a/kbabel/commonui/projectprefwidgets.cpp +++ b/kbabel/commonui/projectprefwidgets.cpp @@ -80,7 +80,7 @@ static TQSize sizeHintForWidget(const TQWidget* widget) { // // The size is computed by adding the sizeHint().height() of all - // widget tqchildren and taking the width of the widest child and adding + // widget children and taking the width of the widest child and adding // tqlayout()->margin() and tqlayout()->spacing() // @@ -289,7 +289,7 @@ SavePreferences::SavePreferences(TQWidget *parent) "").tqarg(defaultName).tqarg(utf8Name) ); +"").arg(defaultName).arg(utf8Name) ); TQWhatsThis::add(_oldEncodingButton @@ -409,7 +409,7 @@ IdentityPreferences::IdentityPreferences(TQWidget* parent, const TQString& proje if( !project.isEmpty() ) { // show the project name in the widget at the top - tqlayout->addWidget(new TQLabel(i18n("Project: %1").tqarg(project),page)); + tqlayout->addWidget(new TQLabel(i18n("Project: %1").arg(project),page)); } TQGroupBox* group = new TQGroupBox(2,Qt::Horizontal,page); @@ -619,12 +619,12 @@ void IdentityPreferences::testPluralForm() "of singular/plural forms automatically for the " "language code \"%1\".\n" "Do you have tdelibs.po installed for this language?\n" - "Please set the correct number manually.").tqarg(lang); + "Please set the correct number manually.").arg(lang); } else { msg = i18n("The number of singular/plural forms found for " - "the language code \"%1\" is %2.").tqarg(lang).tqarg(number); + "the language code \"%1\" is %2.").arg(lang).arg(number); } if(!msg.isEmpty()) diff --git a/kbabel/commonui/projectwizard.cpp b/kbabel/commonui/projectwizard.cpp index 00a88631..31b4ab86 100644 --- a/kbabel/commonui/projectwizard.cpp +++ b/kbabel/commonui/projectwizard.cpp @@ -138,7 +138,7 @@ void ProjectWizard::next() if( file.exists() ) { if (KMessageBox::warningContinueCancel(0, i18n("The file '%1' already exists.\n" - "Do you want to replace it?").tqarg(url()), i18n("File Exists"), i18n("Replace") ) == KMessageBox::Cancel) + "Do you want to replace it?").arg(url()), i18n("File Exists"), i18n("Replace") ) == KMessageBox::Cancel) return; } diff --git a/kbabel/commonui/roughtransdlg.cpp b/kbabel/commonui/roughtransdlg.cpp index a5415529..2818f6eb 100644 --- a/kbabel/commonui/roughtransdlg.cpp +++ b/kbabel/commonui/roughtransdlg.cpp @@ -673,13 +673,13 @@ void RoughTransDlg::showStatistics() "Exact translations: %2 (%3%)\n" "Approximate translations: %4 (%5%)\n" "Nothing found: %6 (%7%)") - .tqarg( locale->formatNumber(totalTried,0) ) - .tqarg( locale->formatNumber(exactTransCounter,0) ) - .tqarg( locale->formatNumber( ((double)(10000*exactTransCounter/TQMAX(totalTried,1)))/100) ) - .tqarg( locale->formatNumber(partTransCounter,0) ) - .tqarg( locale->formatNumber(((double)(10000*partTransCounter/TQMAX(totalTried,1)))/100) ) - .tqarg( locale->formatNumber(nothing,0) ) - .tqarg( locale->formatNumber(((double)(10000*nothing/TQMAX(totalTried,1)))/100) ); + .arg( locale->formatNumber(totalTried,0) ) + .arg( locale->formatNumber(exactTransCounter,0) ) + .arg( locale->formatNumber( ((double)(10000*exactTransCounter/TQMAX(totalTried,1)))/100) ) + .arg( locale->formatNumber(partTransCounter,0) ) + .arg( locale->formatNumber(((double)(10000*partTransCounter/TQMAX(totalTried,1)))/100) ) + .arg( locale->formatNumber(nothing,0) ) + .arg( locale->formatNumber(((double)(10000*nothing/TQMAX(totalTried,1)))/100) ); KMessageBox::information(this, statMsg , i18n("Rough Translation Statistics")); -- cgit v1.2.1