adopt to new API

svn path=/trunk/KDE/kdebase/apps/; revision=659568
This commit is contained in:
Urs Wolfer 2007-04-30 12:24:33 +00:00
parent 107f884ff4
commit ef147ec81b
3 changed files with 12 additions and 12 deletions

View file

@ -5,7 +5,7 @@
<property name="maximum" type="i" access="readwrite"/>
<property name="value" type="i" access="readwrite"/>
<property name="autoClose" type="b" access="readwrite"/>
<method name="setLabel">
<method name="setLabelText">
<arg type="s" name="label" direction="in"/>
</method>
<method name="showCancelButton">

View file

@ -44,22 +44,22 @@ int ProgressDialog::maximum() const
{
return progressBar()->maximum();
}
void ProgressDialog::setValue( int progress )
{
progressBar()->setValue( progress );
if (progress>=maximum() )
showCancelButton( false );
}
}
int ProgressDialog::value() const
{
return progressBar()->value();
}
void ProgressDialog::setLabel(const QString& label)
void ProgressDialog::setLabelText(const QString& label)
{
KProgressDialog::setLabel( label );
KProgressDialog::setLabelText( label );
}
void ProgressDialog::showCancelButton( bool show )
@ -71,18 +71,18 @@ void ProgressDialog::showCancelButton( bool show )
bool ProgressDialog::wasCancelled() const
{
return KProgressDialog::wasCancelled();
}
}
void ProgressDialog::ignoreCancel()
{
{
KProgressDialog::ignoreCancel();
}
}
void ProgressDialog::setAutoClose( bool close )
{
KProgressDialog::setAutoClose( close );
}
}
bool ProgressDialog::autoClose() const
{
return KProgressDialog::autoClose();

View file

@ -36,7 +36,7 @@ class ProgressDialog : public KProgressDialog
void setValue( int );
int value() const;
void setLabel(const QString&);
void setLabelText(const QString&);
void showCancelButton(bool show);
bool wasCancelled() const;