[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 133744] kdialog --proressbar wasCancelled dcop call always
From: Juan Luis Baptiste <juan.baptiste () kdemail ! net>
Date: 2006-09-28 0:58:15
Message-ID: 20060928005815.25400.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=133744
juan.baptiste kdemail net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From juan.baptiste kdemail net 2006-09-28 02:58 -------
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