Re: can't access methods of data engine output for digital-clock declarative example

2011-08-06 Thread Shaun Reich
> because the javascript one is available and at least we are sure it > will continue to be. > binding qdate would mean writing by hand its complete bindings in > javascript, that besides almost duplicating its api, it's very likely > that in qt5 it would disappear, as anything binded with qtscript

Re: can't access methods of data engine output for digital-clock declarative example

2011-08-05 Thread Marco Martin
On Thu, Aug 4, 2011 at 11:14 PM, Shaun Reich wrote: both date and time, which QScript would then handle. > > Reviving this thread as I have a similar issue...how could one access, > for instance the time without milliseconds? e.g. getSeconds() and such > does not work. > > Why do the bindings use

Re: can't access methods of data engine output for digital-clock declarative example

2011-08-04 Thread Shaun Reich
On Fri, Jun 3, 2011 at 4:17 AM, Aaron J. Seigo wrote: > it would be getSeconds(), since it is supposed to be using the standard > Javascript object for times ... however, it seems that QTime objects are not > actually being translated into something useful :/ > > a small tweak to the dataengine sh

Re: can't access methods of data engine output for digital-clock declarative example

2011-06-03 Thread todd rme
On Fri, Jun 3, 2011 at 11:46 AM, Aaron J. Seigo wrote: > On Friday, June 3, 2011 10:17:06 Aaron J. Seigo wrote: >> a small tweak to the dataengine should fix this by providing a complete >> DateTime object with both date and time, which QScript would then handle. > > in 4.7 and beyond there is now

Re: can't access methods of data engine output for digital-clock declarative example

2011-06-03 Thread Aaron J. Seigo
On Friday, June 3, 2011 10:17:06 Aaron J. Seigo wrote: > a small tweak to the dataengine should fix this by providing a complete > DateTime object with both date and time, which QScript would then handle. in 4.7 and beyond there is now a DateTime entry alongside Time and Date. enjoy. -- Aaron J

Re: can't access methods of data engine output for digital-clock declarative example

2011-06-03 Thread Aaron J. Seigo
On Thursday, June 2, 2011 23:22:29 todd rme wrote: > Hi, > > I am working with the digital clock qml example in > kdeexamples/plasma/declarative/digital-clock > > One thing I am trying to do is extract and output the seconds from the > dataengine. The original example has this at line 54: > >