[Touch-packages] [Bug 1494387] Re: CheckBox needs to track external properties

2015-09-15 Thread Tim Peeters
** Description changed: Often a CheckBox/Switch is used to show the value of a property outside of the CheckBox. For example: Switch { id: hiddenSwitch checked: !header.exposed onClicked: header.exposed = !header.exposed } At first look, this code may seem fine,

[Touch-packages] [Bug 1494387] Re: CheckBox needs to track external properties

2015-09-15 Thread Tim Peeters
More people run into problems here: http://pastebin.ubuntu.com/12417204/ -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in Ubuntu. https://bugs.launchpad.net/bugs/1494387 Title: CheckBox needs to track

[Touch-packages] [Bug 1494387] Re: CheckBox needs to track external properties

2015-09-11 Thread Christian Dywan
I can only make a guess since you're not providing a complete example, but I don't see a problem with my code doing what you're describing. The binding isn't broken, the only problem I can see is that the state gets reversed because the value is changed twice. To achieve the desired result you

[Touch-packages] [Bug 1494387] Re: CheckBox needs to track external properties

2015-09-11 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: ubuntu-ui-toolkit (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in Ubuntu.

[Touch-packages] [Bug 1494387] Re: CheckBox needs to track external properties

2015-09-11 Thread Tim Peeters
Christian, you are right. Overriding the trigger() function works for me! However, we do not have this documented, and if I am not an exception here, many developers may run into this issue, so I keep the bug open, but I will update its description to say that we need documentation. **