[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KToolBar
From: Kevin Krammer <kevin.krammer () gmx ! at>
Date: 2002-10-15 10:22:51
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday, 14. October 2002 23:51, Erik Meusel wrote:
> I just want to know if it is there.
>
> Short explanation:
> I've got a toolbar with a window_fullsize-button added by the user to
> the xml-file. In some cases, I want to make sure there is exactly one
> fullsize-button. If the user added one, I do nothing, if he doesn't, I
> add one.
>
> I wanted to implement this by searching through the list of buttons
> and looking for the button->icon() value. But I neither have any
> iterator nor the real recommendation to access the buttons via
> KToolBar::getButton(int).
Hmm, you could check if the action that creates the toolbar button is
present.
KActionCollection::actions() or something related
Cheers,
Kevin
- --
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer@gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
iD8DBQE9q+yVnKMhG6pzZJIRAocwAJ4yOSL3pCBsnNAFr+zCFL4ZpTQ02ACeKVJh
yiX0nOwaZFJfBXMrsUIuxzA=
=gqfh
-----END 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