--Boundary-03=_UOKo9p9OwR9+CBK Content-Type: multipart/mixed; boundary="Boundary-01=_SOKo9eO7mqHaBmJ" Content-Transfer-Encoding: 7bit Content-Description: signed data Content-Disposition: inline --Boundary-01=_SOKo9eO7mqHaBmJ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: body text Content-Disposition: inline Hi, I realized why a queuedMessageBox doesn't have dontAskAgainName=20 parameter. The reason is that the state of this checkbox will be=20 checked directly after the dialog is put in the dialog queue and not=20 when the dialog is closed by the user. In order to make a "Don't ask=20 again" checkbox work in a queuedMessageBox we would have to derive a=20 class from KDialogBase which saves the state of the checkbox in it's=20 d'tor. That should be done sometime but probably not now. Therefore please consider the attached patch which only adds the options=20 parameter to KMessageBox::queuedMessageBox() (by overloading this=20 member function). This makes it possible to display links also in=20 queued message boxes. Regards, Ingo --Boundary-01=_SOKo9eO7mqHaBmJ Content-Type: text/x-diff; charset="iso-8859-1"; name="kmessagebox-add-options-param-to-queuedMessageBox.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kmessagebox-add-options-param-to-queuedMessageBox.diff" Index: kmessagebox.cpp =================================================================== RCS file: /home/kde/kdelibs/kdeui/kmessagebox.cpp,v retrieving revision 1.61 diff -u -3 -p -r1.61 kmessagebox.cpp --- kmessagebox.cpp 2002/08/26 20:33:03 1.61 +++ kmessagebox.cpp 2002/10/06 20:47:20 @@ -788,6 +788,14 @@ int KMessageBox::messageBox( QWidget *pa return KMessageBox::Cancel; } +void KMessageBox::queuedMessageBox( QWidget *parent, DialogType type, const QString &text, const QString &caption, int options ) +{ + KMessageBox_queue = true; + (void) messageBox(parent, type, text, caption, KStdGuiItem::yes(), + KStdGuiItem::no(), options); + KMessageBox_queue = false; +} + void KMessageBox::queuedMessageBox( QWidget *parent, DialogType type, const QString &text, const QString &caption ) { KMessageBox_queue = true; Index: kmessagebox.h =================================================================== RCS file: /home/kde/kdelibs/kdeui/kmessagebox.h,v retrieving revision 1.40 diff -u -3 -p -r1.40 kmessagebox.h --- kmessagebox.h 2002/09/28 15:16:22 1.40 +++ kmessagebox.h 2002/10/06 20:47:21 @@ -607,6 +607,17 @@ public: * * Note that if the parent gets deleted, the messagebox will not be * shown. + */ + static void queuedMessageBox( QWidget *parent, + DialogType type, const QString &text, + const QString &caption, + int options = Notify); + + /** + * @overload + * + * This is an overloaded member function, provided for convenience. + * It behaves essentially like the above function. */ static void queuedMessageBox( QWidget *parent, DialogType type, const QString &text, --Boundary-01=_SOKo9eO7mqHaBmJ-- --Boundary-03=_UOKo9p9OwR9+CBK Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQA9oKOUGnR+RTDgudgRAv7BAKC51xnnN+VLS5RcnNp51XQWDZID2gCeIHKi /OrI+oWVwY7h2JEeANsFBPE= =BwaZ -----END PGP SIGNATURE----- --Boundary-03=_UOKo9p9OwR9+CBK--