Use of KMessageBox::warningYesNo forcontinue/cancel questions.
Ingo Klöcker
kloecker at kde.org
Mon Jun 23 00:14:08 BST 2003
On Sunday 22 June 2003 20:43, Anders Lund wrote:
> On Sunday 22 June 2003 18:05, Ingo Klöcker wrote:
> > On a related issue: Does anyone object against adding three-button
> > message boxes to KMessageBox? We need those in KMail. Currently we
> > are using QMessageBox which allows three buttons with arbitrary
> > text and arbitrary default button. The arbitrary default button is
> > probably not that important. IMO always the first button should be
> > the default button. But the arbitrary button text is important and
> > therefore the YesNoCancel message boxes can't be used. Furthermore
> > the QMessageBoxes return (by default) -1 in case the user aborted
> > the message box with Esc or by closing the window instead of
> > selecting one of the buttons.
>
> Three-button questions often makes sense. You can set the strings for
> the buttons in the constructor:
> * @param buttonYes The text for the first button.
> * The default is i18n("&Yes").
> * @param buttonNo The text for the second button.
> * The default is i18n("&No").
Obviously one can only change the text of two buttons but not of all
three buttons.
Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 192 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030623/79f578ae/attachment.sig>
More information about the kde-core-devel
mailing list