summaryrefslogtreecommitdiffstats
path: root/kbabel/commonui/roughtransdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/commonui/roughtransdlg.cpp')
-rw-r--r--kbabel/commonui/roughtransdlg.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kbabel/commonui/roughtransdlg.cpp b/kbabel/commonui/roughtransdlg.cpp
index 7f671d43..57fb21d0 100644
--- a/kbabel/commonui/roughtransdlg.cpp
+++ b/kbabel/commonui/roughtransdlg.cpp
@@ -44,7 +44,7 @@
#include <tqcheckbox.h>
#include <tqhbuttongroup.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqradiobutton.h>
#include <tqtimer.h>
#include <tqvgroupbox.h>
@@ -187,9 +187,9 @@ RoughTransDlg::RoughTransDlg(KBabelDictBox *dict, Catalog *cat
progressbar = new KProgress(mw,"progressbar");
progressbar->setTextEnabled(true);
progressbar->setFormat("%v/%m (%p%)");
- TQHBoxLayout* pblayout= new TQHBoxLayout(mainLayout);
- pblayout->add(label);
- pblayout->add(progressbar);
+ TQHBoxLayout* pbtqlayout= new TQHBoxLayout(mainLayout);
+ pbtqlayout->add(label);
+ pbtqlayout->add(progressbar);
transButton->setChecked(config->readBoolEntry("Translated",false));
untransButton->setChecked(config->readBoolEntry("Untranslated",true));
@@ -278,7 +278,7 @@ void RoughTransDlg::translate()
for(int i = 0; i < total; i++)
{
progressbar->setProgress(i+1);
- kapp->processEvents(100);
+ kapp->tqprocessEvents(100);
if(stop || cancel) break;
@@ -673,13 +673,13 @@ void RoughTransDlg::showStatistics()
"Exact translations: %2 (%3%)\n"
"Approximate translations: %4 (%5%)\n"
"Nothing found: %6 (%7%)")
- .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) );
+ .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) );
KMessageBox::information(this, statMsg
, i18n("Rough Translation Statistics"));