[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Standart save/discard dialog
From: Waldo Bastian <bastian () kde ! org>
Date: 2005-02-26 20:22:03
Message-ID: 200502262122.06725.bastian () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Saturday 26 February 2005 19:21, Michal Vaner (Vorner) wrote:
> I would like to ask one thing. That dialog "save / discard / cancel" as
> some kind of system provided dialog that should be used, or every app needs
> to create it's own by KMessageBox? Witch one is the valid way to accept the
> system setup. Are the texts of buttons hardcoded onto applications or it is
> system wide?
>
> Thank you.
You typically use something like this in your application:
QString msg = i18n("This document has been modified.\n"
"Would you like to save it?" );
int result = KMessageBox::warningYesNoCancel( this, msg, QString::null,
KStdGuiItem::save(), KStdGuiItem::discard() );
Cheers,
Waldo
--
bastian@kde.org | Free Novell Linux Desktop 9 Evaluation Download
bastian@suse.com | http://www.novell.com/products/desktop/eval.html
[Attachment #5 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic