From kde-devel Wed Dec 28 22:57:47 2005 From: =?utf-8?q?J=C3=B8rn_Fauske?= Date: Wed, 28 Dec 2005 22:57:47 +0000 To: kde-devel Subject: Re: KDialogBase and Default button Message-Id: <200512282357.50044.jorn.fauske () broadpark ! no> X-MARC-Message: https://marc.info/?l=kde-devel&m=113582716632594 Hi, setButtonTip(Default, i18n("Show advanced options" ) ); from KDialogBase might do the trick for you. Jørn On Wednesday 28 December 2005 21:57, Giovanni Venturi wrote:> Hello, can someone explain me how to change the "Default" button tooltip> into a KNewClass : public KDialogBase?>> I tryed:>> void setToolTip (const QString &tooltip)>> from KGuiItem Class but totally unuseful... bugged?>>> KGuiItem defaultButton( i18n("Advanced Options", "&Advanced..."), "name",> i18n( "Show advanced options" ), i18n( "

...

" ) );> defaultButton.setToolTip( i18n( "Show advanced options" ) );> setButtonGuiItem( Default, defaultButton );> defaultButton.setToolTip( i18n( "Show advanced options" ) );>> but nothing:>> KGuiItem defaultButton( i18n("Advanced Options", "&Advanced..."), "name",> i18n( "Show advanced options" ), i18n( "

...

" ) );>> ignores totally the 3rd parameter.>> And "defaultButton.setToolTip( i18n( "Show advanced options" ) );" ignores> its parameter.> Why this 2 members are into kdelibs if they don't work?> Any suggestions?> Giovanni >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<