tool activate()

Sven Langkamp longamp at reallygood.de
Tue Mar 22 01:10:26 CET 2005


On Monday 21 March 2005 14:20, Adrian Page wrote:
> Sven Langkamp wrote:
> > By the way: Is there a reason why the optionwidget of the tools is
> > unpluged twice( once in KisView::setInputDevice and once in
> > KisView::setCurrentTool)?
>
> It's because each input device has its own set of tools with their own
> settings, but only one can be plugged in the widget at a time. Each time
> the input device changes, the old one's option widget is removed and
> replaced with the new one's. This is why it's done in setInputDevice()
> as well as setCurrentTool().
But setInputDevice() always calls setCurrentTool(), so unpluging the 
optionwidget in setCurrentTool would be enough.


More information about the kimageshop mailing list