[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Fwd: kmessagebox patch
From:       Waldo Bastian <bastian () kde ! org>
Date:       2006-04-15 6:21:10
Message-ID: 200604142321.14755.bastian () kde ! org
[Download RAW message or body]


----------  Forwarded Message  ----------

Subject: kmessagebox patch
Date: Friday 14 April 2006 09:40
From: thorsten@staerk.de
To: bastian@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

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic