/srv/irclogs.ubuntu.com/2014/08/16/#ubuntu-app-devel.txt

=== wgrant_ is now known as wgrant
popeyybon: ooooh!08:35
nik90popey: we just got the pot file translation setup in clock reboot.08:48
DanChapmanGood Morning all o/08:52
nik90DanChapman: morning :)08:53
DanChapmanHey nik90 :)08:53
popeynik90: excellent.09:05
nik90mhall119: heads up, the screnshots in http://developer.ubuntu.com/apps/sdk/tutorials/creating-an-sdk-app-project/ have to be updated to show the kits in the app creation wizard and may be explain a little bit about it.09:46
nik90sergiusens: hi, hey I got an MP from dpm which adds translation support for desktop files. This however changes the cmake instructions related to the desktop file. Can you review the cmake changes? I cannot run that branch on my device which tells me something went wrong there.09:55
nik90https://code.launchpad.net/~dpm/ubuntu-clock-app/reboot-desktop-i18n/+merge/23058209:55
nik90sergiusens: I have added you as one of the reviewers, so you should be able to find the MP later.09:55
=== zbenjamin_ is now known as zbenjamin
nik90DanChapman, mzanetti: I need some help with https://code.launchpad.net/~nik90/ubuntu-clock-app/improve-timezone-error-handling/+merge/23107011:06
nik90DanChapman, mzanetti: QtC says 9+ m_status = TimeZoneModel.Ready; is not possible since it expected a primary-expression before "." token.. whatever that means11:06
DanChapmannik90, :-D just looking now11:08
nik90my gut tells me it wants m_status = TimezoneModel::Ready11:09
DanChapmanindeed it should be TimezoneModel::Ready11:10
nik90hmm I thought this was more tricky than it appeared11:13
DanChapmannik90, tricky in what way?11:13
nik90DanChapman: I was stuck a bit initially after defining the Q_Enums(). I thought I should modify that in the other classes dynamically. But turns out I had to create a property which derived from that Q_ENUMS type and I should then create getters and setters for that property instead.11:15
nik90DanChapman: since I am dealing with setting property changes, I am a bit more comfortable since I have done it before11:15
nik90I know, me <-- noob :D11:16
DanChapmannik90, ahh yes I get what you mean. I had the same experiences. Basically if you have a property which returns an enum value and you want to expose it to qml with Q_PROPERTY then you need to declare/register this new enum to the meta-object system, that where Q_ENUMS() comes in. So you still have to use the normal Q_PROPERTY to be able to pass the enum back-and-forth you just have to let qml know about this new "Type"11:22
nik90yes11:23
DanChapmannik90, I must say the "Add City" is rather snappy, found my location really quickly :-D11:25
nik90DanChapman: did you see the activity indicator?11:26
nik90DanChapman: if yes then it searched online and found your city. Otherwise your city was in the local list we provide with the clock app.11:26
nik90Either way awesome :)11:26
DanChapmanyes it searched online for it :-)11:26
nik90popey: Do i have to append &release=utopic to http://geoname-lookup.ubuntu.com/?query=Farnborough?12:20
nik90popey: it seems to work without12:20
nik90DanChapman: hey I have implemented the network error part. It now shows a string if you are not connected to the internet. :)12:50
nik90DanChapman: I have one issue though.12:50
nik90DanChapman: Say you have the clock app open and the internet connection active, when you do a search it works as expected. However while the app is open, if you disable the internet, it just keeps searching instead of saying "Internet connection not available". I am not sure what is..can you help?12:51
qtrosHi all12:52
qtrosI've found that my device is showing different time and top left corner and in settings12:53
nik90qtros: image?12:53
qtrostrying to take screen)12:53
qtrosnik90 but screencap hangs12:53
nik90qtros: no no which iamge number?12:53
qtrosnik90 ah, latest, r19312:54
nik90qtros: yup known promotion blocker12:54
nik90:/12:54
qtrosnik90 do you mean that someone already know about this bug?12:54
nik90qtros: yes12:54
qtrosnik90 ok)12:55
DanChapmannik90, nice one :-) Right so is that turn the internet off while a search is in progress or just with try to search after switching it off13:04
nik90DanChapman: just trying to search after switching it off13:05
nik90DanChapman: I may not be ending stopping the network request property once a search is done13:06
nik90DanChapman: It looks like after I switch the internet of and then do the search, the status property is not being updated in the networkReplyFinished() function. As a result the UI thinks it is still doing an online search.13:09
DanChapmannik90, it seems to be working for me. Let me try again13:19
DanChapmannik90, so with the app open & internet off the log i see [LOG] Network error:  "Host geoname-lookup.ubuntu.com not found" and i get the "Unable to connect.... " message on the ui13:19
nik90DanChapman: let me list the steps here to reproduce the bug13:21
nik90DanChapman: 1. Ensure internet is available, and then open the app.13:21
nik902. Make a search for a online city13:21
nik903. Once the search results are shown, disable the internet.13:21
nik904. Clear the searchfield and then search again for a city online13:22
nik905. At this point, there is no internet, so the search cannot be made online. But the string "Searching for city" still appears along side the activity indicator13:22
nik90DanChapman: can you check now if you get it?13:22
DanChapmannik90 following your steps it works as expected this is the result of step 4 http://imgur.com/R9Gz4md13:24
DanChapmanahh that's the wrong image. same result though13:26
nik90hmm let me try13:27
DanChapmannik90, ahh but if i try searching and then turn internet off and re-search the same city I get http://imgur.com/zpWGsNt13:29
nik90DanChapman: yup I see your issue :D but I can no longer reproduce my issue any more mysteriously13:30
popeynik90: there's nothing in the code that uses it that I can see13:38
DanChapmannik90, once antti's fix for bug 1341548 has landed you will be able to detect network status changes see http://bazaar.launchpad.net/~unity-api-team/indicator-network/connectivity-service-bindings/view/head:/tests/integration/qt/qml/tst_api.qml so you will be able to detect network changes without having to rely on reply errors13:42
ubot5bug 1341548 in Network Menu "Online detection does not work with confined apps on Nexus 4" [Critical,In progress] https://launchpad.net/bugs/134154813:42
nik90DanChapman: cool13:46
nik90DanChapman: so I use my reply error to detect if the server is up while the network status change will be based on ^^13:47
DanChapmannik90, It's so you can detect if the device has a valid/useable internet connection and whether it's bandwidth limited i.e 3G/2G.... Normally one would do this in the app using QNetworkConfigurationManager and QNetworkSession but we don't have that in confined apps.  So like we just tested by turning off internet, ideally you wouldn't even make a network request as it's well pointless :-) So instead just show a message about no conne13:52
DanChapmanction13:52
nik90:)13:54
dakerybon: ship it!15:22
dakerybon: and if i am not wrong most of apps are called "Maps" not "Map"15:23
mhall119thanks nik90, can you file a bug about that? (link to file is at the bottom of the page)17:16
ybondaker: it's on QA phase ;)18:37
ybondaker: what about "Maps"? You mean I need to name it "Maps" instead of "Map"?18:38
dakerybon: yes18:38
ybonwhat's the rationale? I missed it :)18:38
dakerybon: just search for "Map app" then look at the results18:39
ybonin the store?18:39
dakerybon: in google18:39
daker- HERE Maps18:39
daker- Google Maps18:40
ybonOpenStreetMap :)18:40
daker- Maps app18:40
ybonbut I'm fine with an "s"18:40
daker:)18:41
dakerybon: does the OSM api for place give enough details ?18:41
dakerhttps://github.com/yohanboniface/OSMTouch/blob/master/models/PoiModel.qml#L718:42
ybonthe API does enough details for sure, but I'm using just a few of them for now18:43
ybonI need something a bit more dynamic18:43
yboninstead of listing all of them18:43
ybonI will still need some specific cases, for example to make a phone number start a call18:43
ybonor an URL open the browser18:43
ybonbut I plan to have more properties displayed18:44
dakerok18:44
ybonalso, about the bottom edge and "recent searchs" thing, I'd like to have "recents actions" instead, so if you make a nearby search it will also appear on the list18:45
dakerok18:47
ybonnik90: around?18:51
nik90ybon: lucky...just got home18:54
ybon:)18:55
ybonnik90: I've copied the PageWithBottomEdge component from your app18:55
ybon(shame on me)18:55
ybonI'd like to repopupate a list model when the user start clicking on the bottom edge "button", do you know what would be the best strategy?18:56
nik90ybon: I took it from the address book...:P18:57
ybonhuhu18:57
nik90ybon: I think the contents in the bottom edge page are dynamically loaded. So they should get automatically repopulated when the user starts dragging the bottom edge up18:58
nik90ybon: I was asked to keep it similar to what the dialer app, address book etc have..and besides it is always good to share code amongst apps.18:58
nik90ybon: the more popular it gets, the more change it gets into the sdk18:59
ybonsure18:59
ybonit doesn't seem that my page component.onCompleted is called twice19:00
ybonand I think it's normal19:00
ybonso for now I've a page that is the bottom edge one, but I only populate its listmodel onCompleted19:00
ybonso this is called one when the app is loaded19:00
ybononce*19:00
ybonsee https://github.com/yohanboniface/OSMTouch/blob/master/OSMTouch.qml#L36119:01
nik90ybon: what kind of model are you using?19:02
ybonListModel19:03
ybonsee line 37419:03
nik90ybon: You could clear your listmodel using clear() and perform the actions you do in the component.onCompleted signal again.19:05
ybonnik90: it's not called again19:06
nik90ybon: I am not exactly sure but I think the bottom edge has a variable which keeps tracks of how far the bottom edge has been swiped again19:06
nik90ybon: once you know the bottom edge has swiped so much then perform the clear() and then init() functions by manually calling them19:06
ybonhumm, that's an idea19:07
ybonnext step being to highlight the search when you start swipping up,just like in the dialer app19:08
ybonso I need to make friend with this variable in any cases :)19:08
nik90check out the dialer app to see how they do it19:09
nik90that's what I would do19:09
nik90mhall119: reported bug. Btw where are page content stored? I checked out lp:ubuntudeveloperportal in the hopes of trying to fix it, but it only seems to contains scripts.19:12
ybonoh, ok, onComplete is called again when I've opened the page and closed it19:24
ybonso 1. open the map 2. onComplete is called 3. make a search 4. open "recent searchs" your search is missing 5. close "recent searchs", onCompleted is called again 6. Open again "recent search", you search is there19:25
ybonso onCompleted is not the even I want19:25
nik90DanChapman, mzanetti: I put you both as reviewers of https://code.launchpad.net/~nik90/ubuntu-clock-app/improve-timezone-error-handling/+merge/231070. Enjoy :D20:06
mzanettinik90: had a first look20:10
mzanetticommented on the MP20:10
nik90ah ... forgot i emmitted it twice..no wonder I saw the onStatusChanged produce outputs twice20:11
=== chihchun_afk is now known as chihchun
mhall119nik90: it's wordpress, so most content is in the database20:33
nik90mhall119: ah ok..no worries20:33
=== chihchun_afk is now known as chihchun
ybonnik90: I've ended adding my event, not sure it's the best way, but it works for now ;) https://github.com/yohanboniface/OSMTouch/commit/a5fcfbbadc1d7d1d705b948d33792098f904b4ac20:56
dev_Does anyone ust QML?22:03
dev_I'm having trouble with accessing and loading an image for a background22:04

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!