summaryrefslogtreecommitdiffstats
path: root/kdeui/kprogress.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdeui/kprogress.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kprogress.cpp')
-rw-r--r--kdeui/kprogress.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kdeui/kprogress.cpp b/kdeui/kprogress.cpp
index 17994eb88..23a3b06ab 100644
--- a/kdeui/kprogress.cpp
+++ b/kdeui/kprogress.cpp
@@ -132,9 +132,9 @@ bool KProgress::setIndicator(TQString &indicator, int progress, int totalSteps)
if (!totalSteps)
return false;
TQString newString(mFormat);
- newString.replace(TQString::fromLatin1("%v"),
+ newString.tqreplace(TQString::tqfromLatin1("%v"),
TQString::number(progress));
- newString.replace(TQString::fromLatin1("%m"),
+ newString.tqreplace(TQString::tqfromLatin1("%m"),
TQString::number(totalSteps));
if (totalSteps > INT_MAX / 1000) {
@@ -142,7 +142,7 @@ bool KProgress::setIndicator(TQString &indicator, int progress, int totalSteps)
totalSteps /= 1000;
}
- newString.replace(TQString::fromLatin1("%p"),
+ newString.tqreplace(TQString::tqfromLatin1("%p"),
TQString::number((progress * 100) / totalSteps));
if (newString != indicator)
@@ -188,13 +188,13 @@ KProgressDialog::KProgressDialog(TQWidget* parent, const char* name,
mCancelText = actionButton(KDialogBase::Cancel)->text();
TQFrame* mainWidget = plainPage();
- TQVBoxLayout* layout = new TQVBoxLayout(mainWidget, 10);
+ TQVBoxLayout* tqlayout = new TQVBoxLayout(mainWidget, 10);
mLabel = new TQLabel(text, mainWidget);
- layout->addWidget(mLabel);
+ tqlayout->addWidget(mLabel);
mProgressBar = new KProgress(mainWidget);
- layout->addWidget(mProgressBar);
+ tqlayout->addWidget(mProgressBar);
connect(mProgressBar, TQT_SIGNAL(percentageChanged(int)),
this, TQT_SLOT(slotAutoActions(int)));