Hey Torsten,

2008/12/2 Koen Deforche <[EMAIL PROTECTED]>:
> To set the style class (you can already implement this now, and then
> benefit from the support in WComboBox later):

I was a bit too fast. You first have to change WComboBox'es default
WStringListModel to a more general WStandardItemModel (or other model
that also stores other role data and not just the strings).

Thus, first you do:

comboBox->setModel(new WStandardItemModel(0, 1, comboBox));

And then:

> comboBox->model()->setData(index, 0, boost::any(styleClass), StyleClassRole);

Oh, and this works now with the CVS version!

Regards,
koen

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to