SVN commit 589356 by jbaptiste: FEATURE: 133744 Added ignoreCancel() method that ignores the last cancel action if the cancel button was pressed. M +5 -0 kprogress.cpp M +8 -0 kprogress.h --- branches/KDE/3.5/kdelibs/kdeui/kprogress.cpp #589355:589356 @@ -233,6 +233,11 @@ return mCancelled; } +void KProgressDialog::ignoreCancel() +{ + mCancelled = false; +} + bool KProgressDialog::wasCancelled() const { return mCancelled; --- branches/KDE/3.5/kdelibs/kdeui/kprogress.h #589355:589356 @@ -327,6 +327,14 @@ bool wasCancelled() const; /** + * Ignores the last cancel action if the cancel button was + * pressed. Useful for kdialog when combined with a KMessageBox + * to display a message like "Are you sure you want to cancel?" + * @since 3.5.5 + */ + void ignoreCancel(); + + /** * Sets the text to appear on the cancel button. */ void setButtonText(const QString&);