I think the problem is that the tree items' appearance is overwritten by qx.ui.tree.core.MWidgetController.bindDefaultProperties. This methods sets up a binding between the length of the item's child property and its appearance, so that items with children get the virtual-tree-folder appearance while items without children get virtual-tree file. You can override this behavior in the tree delegate's bindItem function: Set up bindings only for the model, labelPath and iconPath properties, and the appearance set in configureItem should no longer be overridden.
On 11/08/2011 05:02 PM, Benjamin Dreux wrote: > I've tried to define a custom appearance and to use it in the > configureItem of my delegate. > > Unfortunately this doesn't seems to work. > Since, tree is a kind of list, maybe the treeItem background image is > override but the list item property. > Le 8 novembre 2011 10:02, Benjamin Dreux<[email protected]> a écrit : >> Thanks for your answer. >> >> Here is the bug report http://bugzilla.qooxdoo.org/show_bug.cgi?id=5784 >> >> Le 8 novembre 2011 08:50, Daniel Wagner<[email protected]> a écrit : >>> Hi Benjamin, >>> >>> I can see how a "none" selection mode could be useful, feel free to open >>> an enhancement bug report for this. >>> >>> The appearance keys responsible for the tree selection styling are >>> "tree-item" and "tree-item/open" (for the arrow icon). Look for the >>> values that are returned if states.selected is true. >>> >>> Regards, >>> Daniel >>> >>> On 11/07/2011 06:13 PM, Benjamin Dreux wrote: >>>> Hi >>>> >>>> I'm wondering if it would be a good idea to have a noSelection as >>>> selection mode in the tree's widget. >>>> The aim will be to only show the tree, but never highlight any of the >>>> items. >>>> I'm thinking about this because currently I've had some html link into a >>>> tree. >>>> The links are dark blue, and the selection of the tree is dark blue too. >>>> Plus in my case i don't need the selection property, but maybe it is >>>> used internally. >>>> >>>> In fact to solve my issue, i would be satisfied to just find the part >>>> of appearance to modify to have no blue highlight on the selection of >>>> this tree. >>>> >>>> Regards >>> >>> ------------------------------------------------------------------------------ >>> RSA(R) Conference 2012 >>> Save $700 by Nov 18 >>> Register now >>> http://p.sf.net/sfu/rsa-sfdev2dev1 >>> _______________________________________________ >>> qooxdoo-devel mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >>> >> >> >> >> -- >> Benjamin Dreux >> Analyste-Programmeur >> Chaire de logiciel libre-Finance Social et solidaire >> UQAM >> Montréal >> > > > ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
