[SailfishDevel] ComboBox with many MenuItems

Franck Routier (perso) alci at mecadu.org
Sun Jan 26 10:04:13 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Interestingly, the workaround that worked with paged ComboBox (that is
use onCurrentItemChanged) stopped to work as soon as I switch to
MenuItems defined from a Repeater.
With MenuItems defined from Repeater, onCurrentItemChanged fires
everytime the page is shown, and currentItem is always the first
ListElement of the model...

With Repeater, I had to use onCurrentIndexChanged.

BR,
Franck
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS5N2dAAoJEGEvoAir78RoJjEIAJ9UtzRm7lrf6fD427ufsPtT
91PzNHF6kS5zELypp2pZwIJouFNN1YT3s5tkXCupa8oUP6/jp4kDfhN6Nkjw0q+K
IwM9fTox5OIF2F18abg9yE4CB0Si4nhYNb2VgwtI+RHekvEzNEhZXrVAR+FxzheB
GMaJX+c68u0RSC2VB8AH1m29789YIlFYx+A/XGMJnD3tRnRu2hsnsHfLYWMZYxp9
PZM4BOdOF0ah0Bu2CteE6dyOAr7MWfyJTvgvRrTBa35ppwsyKUxrvAz0AMFinRTT
Y3sX2dOo6jfpGHWZRb9698zRADr4eI0pwfcuXRHS/kBhefs+eDK9BM1XYVfLpO0=
=/DtU
-----END PGP SIGNATURE-----


More information about the Devel mailing list