[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/dialogs
From: Juan Luis Baptiste <juan.baptiste () kdemail ! net>
Date: 2006-10-18 3:17:48
Message-ID: 1161141468.364368.1784.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 596637 by jbaptiste:
Forwardported feature 133744 from 3.5 branch.
M +5 -0 kprogressdialog.cpp
M +7 -0 kprogressdialog.h
--- trunk/KDE/kdelibs/kdeui/dialogs/kprogressdialog.cpp #596636:596637
@@ -123,6 +123,11 @@
return d->mCancelled;
}
+void KProgressDialog::ignoreCancel()
+{
+ mCancelled = false;
+}
+
void KProgressDialog::setMinimumDuration(int ms)
{
d->mMinDuration = ms;
--- trunk/KDE/kdelibs/kdeui/dialogs/kprogressdialog.h #596636:596637
@@ -146,6 +146,13 @@
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?"
+ */
+ 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