[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/kdeui
From: Juan Luis Baptiste <juan.baptiste () kdemail ! net>
Date: 2006-09-28 0:58:10
Message-ID: 1159405090.251521.12560.nullmailer () svn ! kde ! org
[Download RAW message or body]
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&);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic