ahayzen | balloons, ping | 13:51 |
---|---|---|
balloons | ahayzen, pong | 13:52 |
ahayzen | balloons, So I have a LocationPane {} QML object which is actually just a ListView, and I have an autopilot class LocationPane(UbuntuUIToolkitCustomProxyObjectBase) ... | 13:52 |
ahayzen | ...but it doesn't appear to get any of the properties of the ListView? Any ideas what I've missed (something probably simple) | 13:52 |
ahayzen | The getter for the AP object is self.wait_select_single(LocationPane, objectName="locationPane" + str(index)) | 13:52 |
ahayzen | I can see in Vis that it has the type (in the tree) LocationPane .. and on the right it shows all the correct properties as well | 13:53 |
ahayzen | balloons, i can provide code if it helps, its all just a bit strange really and i'm not sure what i've missed :-/ | 13:55 |
balloons | ahayzen, at first glance that sounds all good | 13:57 |
balloons | are you not getting the right object though? sometimes those types like listivews have parent and child objects that can confuse | 13:58 |
ahayzen | hah i bet i'm not | 13:58 |
ahayzen | the weather app is a sortof minefield of nested listviews and other things at this part | 13:58 |
balloons | off the cuff, that's my guess. I seem to remember having similar issues at times | 13:58 |
balloons | try adding objectnames to stuff and grok the qml / read vis. You might need to get a parent object in order to get the listview controls you want | 13:59 |
ahayzen | yeah i think this might be the issue lol, i wonder what object i'm actually getting! lol | 13:59 |
balloons | you can also check the uitk AP helpers for how they do it. They have demo qml and tests for helpers | 13:59 |
ahayzen | oh no.. | 14:00 |
balloons | that should help spell out how the listview works in qml so you can understand what to grab | 14:00 |
ahayzen | so in the locationPane.qml it has objectName: "locationListView" ... but where it is created it has LocationPane {objectName: "locationPane" + index} | 14:00 |
ahayzen | balloons, ok i appear to have fixed it :-) | 14:03 |
ahayzen | balloons, thanks for the help | 14:03 |
balloons | ahayzen, glad it's working | 14:05 |
balloons | Sometimes I suppose it's helpful to have someone repeat things to you. Glad it was easy enough to fix | 14:05 |
* ahayzen tries to work out if he can somehow get the QQuickFlickable so he can use swipe_to_top() | 14:06 | |
balloons | oO | 14:06 |
ahayzen | http://people.canonical.com/~nskaggs/autopilot-sdk-helpers.html#ubuntuuitoolkit.QQuickFlickable.swipe_to_top | 14:06 |
ahayzen | a ListView is a Flickable as well, so if i can somehow unconfuse AP :-) | 14:06 |
balloons | well if you have to, clone the method and tweak it so it works. Then it's a simple matter of requesting the patch into the helpers | 14:07 |
ahayzen | hah but i still think this is not picking up the fact its a listview/flickable | 14:08 |
ahayzen | balloons, i inherit from UbuntuUIToolkitCustomProxyObjectBase right? or do i put the fact its a ListView there ? | 14:08 |
ahayzen | balloons, ah i think i really wanted class LocationPane(QQuickListView): .. that seems to be acting better :-) | 14:10 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!