summaryrefslogtreecommitdiffstats
path: root/kdeui/kprogress.cpp
diff options
context:
space:
mode:
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)));