/srv/irclogs.ubuntu.com/2015/10/15/#ubuntu-autopilot.txt

ahayzenballoons, ping13:51
balloonsahayzen, pong13:52
ahayzenballoons, 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
ahayzenThe getter for the AP object is self.wait_select_single(LocationPane, objectName="locationPane" + str(index))13:52
ahayzenI can see in Vis that it has the type (in the tree) LocationPane .. and on the right it shows all the correct properties as well13:53
ahayzenballoons, 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
balloonsahayzen, at first glance that sounds all good13:57
balloonsare you not getting the right object though? sometimes those types like listivews have parent and child objects that can confuse13:58
ahayzenhah i bet i'm not13:58
ahayzenthe weather app is a sortof minefield of nested listviews and other things at this part13:58
balloonsoff the cuff, that's my guess. I seem to remember having similar issues at times13:58
balloonstry 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 want13:59
ahayzenyeah i think this might be the issue lol, i wonder what object i'm actually getting! lol13:59
balloonsyou can also check the uitk AP helpers for how they do it. They have demo qml and tests for helpers13:59
ahayzenoh no..14:00
balloonsthat should help spell out how the listview works in qml so you can understand what to grab14:00
ahayzenso in the locationPane.qml it has objectName: "locationListView" ... but where it is created it has LocationPane {objectName: "locationPane" + index}14:00
ahayzenballoons, ok i appear to have fixed it :-)14:03
ahayzenballoons, thanks for the help14:03
balloonsahayzen, glad it's working14:05
balloonsSometimes I suppose it's helpful to have someone repeat things to you. Glad it was easy enough to fix14:05
* ahayzen tries to work out if he can somehow get the QQuickFlickable so he can use swipe_to_top()14:06
balloonsoO14:06
ahayzenhttp://people.canonical.com/~nskaggs/autopilot-sdk-helpers.html#ubuntuuitoolkit.QQuickFlickable.swipe_to_top14:06
ahayzena ListView is a Flickable as well, so if i can somehow unconfuse AP :-)14:06
balloonswell 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 helpers14:07
ahayzenhah but i still think this is not picking up the fact its a listview/flickable14:08
ahayzenballoons, i inherit from UbuntuUIToolkitCustomProxyObjectBase right? or do i put the fact its a ListView there ?14:08
ahayzenballoons, 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!