Some issues with the polyline and polygon tools
Boudewijn Rempt
boud at valdyas.org
Sun Mar 20 09:23:48 CET 2005
On Sun, 20 Mar 2005, Michael Thaler wrote:
> On Saturday 19 March 2005 23:39, Boudewijn Rempt wrote:
>
> > > Is it possible to have two icons for one tool?
> >
> > Sure, just create two actions.
>
<...>
Make sure both actions are also in the .rc file; additionally, you
need to create two seperation actions, like:
m_actionPolygon = static_cast<KRadioAction *>(collection -> action("polygon"));
m_actionPolyline = static_cast<KRadioAction *>(collection -> action("polyline"));
> But that does not work. Why do we need the line
> m_action = static_cast<KRadioAction *>(collection -> action(name())); ? What
> does it actually do? How can I set up two actions?
Hm... I'll look at this when I get back from Church -- need to go now!
Boudewijn
More information about the kimageshop
mailing list