summaryrefslogtreecommitdiffstats
path: root/kbabel/catalogmanager/multiroughtransdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/catalogmanager/multiroughtransdlg.cpp')
-rw-r--r--kbabel/catalogmanager/multiroughtransdlg.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kbabel/catalogmanager/multiroughtransdlg.cpp b/kbabel/catalogmanager/multiroughtransdlg.cpp
index 248ac55a..70cc32fc 100644
--- a/kbabel/catalogmanager/multiroughtransdlg.cpp
+++ b/kbabel/catalogmanager/multiroughtransdlg.cpp
@@ -21,11 +21,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -48,19 +48,19 @@
using namespace KBabel;
MultiRoughTransDlg::MultiRoughTransDlg(KBabelDictBox *dict, TQPtrList<CatManListItem> files
- , TQWidget *parent,const char *name)
- : RoughTransDlg(dict, new Catalog(), parent, name )
+ , TQWidget *tqparent,const char *name)
+ : RoughTransDlg(dict, new Catalog(), tqparent, name )
,_fileList(files)
{
- TQWidget* bars = static_cast<TQWidget*>(progressbar->parent());
+ TQWidget* bars = static_cast<TQWidget*>(progressbar->tqparent());
TQLabel* label = new TQLabel( i18n("Files:"), bars );
filesProgressbar = new KProgress(bars,"files progressbar");
filesProgressbar->setTextEnabled(true);
filesProgressbar->setFormat("%v/%m (%p%)");
filesProgressbar->setTotalSteps(files.count());
- TQHBoxLayout* mylayout= new TQHBoxLayout(bars->layout());
- mylayout->add(label);
- mylayout->add(filesProgressbar);
+ TQHBoxLayout* mytqlayout= new TQHBoxLayout(bars->tqlayout());
+ mytqlayout->add(label);
+ mytqlayout->add(filesProgressbar);
msgButtonClicked(0);
}
@@ -82,7 +82,7 @@ void MultiRoughTransDlg::translate()
if( catalog->openURL( url ) != OK )
{
KMessageBox::error(this, i18n("Error while trying to read file:\n %1\n"
- "Maybe it is not a valid PO file.").arg(url.prettyURL()));
+ "Maybe it is not a valid PO file.").tqarg(url.prettyURL()));
filesProgressbar->advance(1);
continue;
}
@@ -94,7 +94,7 @@ void MultiRoughTransDlg::translate()
if( catalog->openURL( poturl, url ) != OK )
{
KMessageBox::error(this, i18n("Error while trying to read file:\n %1\n"
- "Maybe it is not a valid PO file.").arg(poturl.prettyURL()));
+ "Maybe it is not a valid PO file.").tqarg(poturl.prettyURL()));
filesProgressbar->advance(1);
continue;
}
@@ -131,13 +131,13 @@ void MultiRoughTransDlg::showAllStatistics()
"Exact translations: %2 (%3%)\n"
"Approximate translations: %4 (%5%)\n"
"Nothing found: %6 (%7%)")
- .arg( locale->formatNumber(tt,0) )
- .arg( locale->formatNumber(etc,0) )
- .arg( locale->formatNumber( ((double)(10000*etc/tt))/100) )
- .arg( locale->formatNumber(ptc,0) )
- .arg( locale->formatNumber(((double)(10000*ptc/tt))/100) )
- .arg( locale->formatNumber(nothing,0) )
- .arg( locale->formatNumber(((double)(10000*nothing/tt)/100) ) );
+ .tqarg( locale->formatNumber(tt,0) )
+ .tqarg( locale->formatNumber(etc,0) )
+ .tqarg( locale->formatNumber( ((double)(10000*etc/tt))/100) )
+ .tqarg( locale->formatNumber(ptc,0) )
+ .tqarg( locale->formatNumber(((double)(10000*ptc/tt))/100) )
+ .tqarg( locale->formatNumber(nothing,0) )
+ .tqarg( locale->formatNumber(((double)(10000*nothing/tt)/100) ) );
KMessageBox::information(this, statMsg
, i18n("Rough Translation Statistics"));