Personal tools
You are here: Home Forum Extension of the platform Why icons are copied to all Object Browser columns?

Why icons are copied to all Object Browser columns?

Up to Extension of the platform

Why icons are copied to all Object Browser columns?

Posted by Timo Siltala at March 30. 2017

If there is an icon in Object Browser "Name" column it gets copied to all other columns also, an unwanted situation. How to get rid of them? Debugger reveals that DataObject::icon is visited many times, most probably for the unwanted columns. So, how to detect which column is the target or is there another smarter way to limit icon's copying?

Timo

Re: Why icons are copied to all Object Browser columns?

Posted by Vadim SANDLER at March 30. 2017

Hello,

The method icon() of the SUIT_DataObject class (as well as other methods like text(), color(), font(), ...) has integer parameter which is an index of the column. So, you have to properly implement these methods in order to provide an icon (and/other data) for each particular column.

Regards,
Vadim.

Powered by Ploneboard
Document Actions