tool activate()

Adrian Page adrian at pagenet.plus.com
Mon Mar 21 14:20:44 CET 2005


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().

Adrian



More information about the kimageshop mailing list