[Digikam-devel] setButtonGuiItem() from KDE 3.3
Gilles Caulier
caulier.gilles at free.fr
Wed Nov 23 06:26:49 GMT 2005
Le Mardi 22 Novembre 2005 22:58, Mike Seymour (sent by Nabble.com) a écrit :
> Hello:
>
> Actually, the change in the SVN souce will leave the forward and back
> buttons blank in the image properties dialog. I added the code below which
> seemed to give the buttons for those of us stuck with KDE < 3.3
>
> cordialement
>
> Mike
>
> *** imageproperties.cpp 2005-11-22 22:40:41.023253880 +0100
> --- imageproperties.cpp.bak 2005-11-16 15:18:32.000000000 +0100
> ***************
> *** 59,74 ****
> {
> if (m_mode == MULTI)
> {
> - #if KDE_IS_VERSION(3,3,0)
> setButtonGuiItem(User1,
> KStdGuiItem::guiItem(KStdGuiItem::Forward)); setButtonGuiItem(User2,
> KStdGuiItem::guiItem(KStdGuiItem::Back)); - #else
> - setButtonText(User1,
> KStdGuiItem::guiItem(KStdGuiItem::Forward).plainTe xt() );
> - setButtonTip( User1,
> KStdGuiItem::guiItem(KStdGuiItem::Forward).toolTip( ) );
> - setButtonText(User2,
> KStdGuiItem::guiItem(KStdGuiItem::Back).plainText( ) );
> - setButtonTip( User2,
> KStdGuiItem::guiItem(KStdGuiItem::Back).toolTip() ) ;
>
> - #endif
> enableButton(User1, m_currItem->nextItem() != 0);
> enableButton(User2, m_currItem->prevItem() != 0);
> }
This patch much be applied on 0.8.1 branch only (if necessary) because Image
properties _dialog_ will be removed on trunk (we use sidebar instead).
Tom, you is free to apply these patch if you want (:=)))
--
Gilles
More information about the Digikam-devel
mailing list