Fwd: kmessagebox patch
Waldo Bastian
bastian at kde.org
Sat Apr 15 07:21:10 BST 2006
---------- Forwarded Message ----------
Subject: kmessagebox patch
Date: Friday 14 April 2006 09:40
From: thorsten at staerk.de
To: bastian at kde.org
Hallo Waldo,
ich habe da mal einen kleinen patch für kmessagebox geschrieben, den ich
für meine Apps brauche:
Index: kdeui/kmessagebox.cpp
===================================================================
--- kdeui/kmessagebox.cpp (revision 529556)
+++ kdeui/kmessagebox.cpp (working copy)
@@ -631,7 +631,9 @@
const QString &caption,
const KGuiItem &buttonContinue,
const QString &dontAskAgainName,
- Options options)
+ Options options,
+ const QString yeswhatsthis,
+ const QString nowhatsthis )
{
if ( !shouldBeShownContinue(dontAskAgainName) )
return Continue;
@@ -646,6 +648,8 @@
dialog->setButtonText( KDialog::No, KStdGuiItem::cancel().text() );
dialog->setDefaultButton( KDialog::Yes );
dialog->setEscapeButton( KDialog::No );
+ dialog->setButtonWhatsThis(KDialog::Yes, yeswhatsthis );
+ dialog->setButtonWhatsThis(KDialog::No, nowhatsthis);
if( options & PlainCaption )
dialog->setPlainCaption( caption );
#ifdef Q_WS_X11
Index: kdeui/kmessagebox.h
===================================================================
--- kdeui/kmessagebox.h (revision 529556)
+++ kdeui/kmessagebox.h (working copy)
@@ -439,7 +439,9 @@
const QString &caption = QString(),
const KGuiItem &buttonContinue =
KStdGuiItem::cont(),
const QString &dontAskAgainName = QString(),
- Options options = Notify);
+ Options options = Notify,
+ const QString yeswhatsthis = QString(),
+ const QString nowhatsthis = QString() );
/**
* Display a Yes/No/Cancel "warning" dialog.
den und ähnliche kann ich doch einchecken, oder ?
danke
Thorsten
-------------------------------------------------------
--
Linux Client Architect - Channel Platform Solutions Group - Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060415/046b23e6/attachment.sig>
More information about the kde-core-devel
mailing list