← Back to team overview

uonedb-qt team mailing list archive

Re: U1Db-Qt & bi-directional changes

 

On 03/06/2013 01:50 PM, Christian Dywan wrote:


For bi-directional changes, it should be something like this:

aDocument { …
onContentsChanged: soundSetting.text = contents.sound
… }
TextField { id: soundSetting; onAccepted: {var foo = aDocument.contents;
foo.sound = text; aDocument.contents=foo } }


As of revision 35 this approach appears to work very nicely.

There is area in u1db-qt-example-3 where I have just applied it and it worked as described.

Thanks.

Kevin




References