mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
adopt to new API
svn path=/trunk/KDE/kdebase/apps/; revision=659568
This commit is contained in:
parent
107f884ff4
commit
ef147ec81b
|
@ -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">
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue