From kde-core-devel Mon Oct 07 22:56:26 2002 From: Ingo =?iso-8859-1?q?Kl=F6cker?= Date: Mon, 07 Oct 2002 22:56:26 +0000 To: kde-core-devel Subject: Re: [PATCH] Add dontAskAgainName parameter to queuedMessageBox() X-MARC-Message: https://marc.info/?l=kde-core-devel&m=103403143813919 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary-03=_eEho9qmEelidkek" --Boundary-03=_eEho9qmEelidkek Content-Type: multipart/mixed; boundary="Boundary-01=_bEho9GLvIWjT7tK" Content-Transfer-Encoding: 7bit Content-Description: signed data Content-Disposition: inline --Boundary-01=_bEho9GLvIWjT7tK Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: body text Content-Disposition: inline On Sunday 06 October 2002 22:56, Ingo Kl=F6cker wrote: > Therefore please consider the attached patch which only adds the > options parameter to KMessageBox::queuedMessageBox() (by overloading > this member function). This makes it possible to display links also > in queued message boxes. Attached is an updated version of my patch which fixes the ambiguity in=20 my previous patch. Is this patch bc? Can I commit? Regards, Ingo --Boundary-01=_bEho9GLvIWjT7tK 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/07 22:35:41 @@ -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/07 22:35:42 @@ -610,6 +610,17 @@ public: */ static void queuedMessageBox( QWidget *parent, DialogType type, const QString &text, + const QString &caption, + int options ); + + /** + * @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, const QString &caption = QString::null ); }; --Boundary-01=_bEho9GLvIWjT7tK-- --Boundary-03=_eEho9qmEelidkek Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQA9ohEeGnR+RTDgudgRAg1dAKCau0+1SSZCkockj7ePhdefYCXGVQCfeY1B h7wNpdHWe5s8YHKhzEKtqRc= =GWFk -----END PGP SIGNATURE----- --Boundary-03=_eEho9qmEelidkek--