=== wgrant_ is now known as wgrant [08:35] ybon: ooooh! [08:48] popey: we just got the pot file translation setup in clock reboot. [08:52] Good Morning all o/ [08:53] DanChapman: morning :) [08:53] Hey nik90 :) [09:05] nik90: excellent. [09:46] mhall119: 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:55] sergiusens: 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] https://code.launchpad.net/~dpm/ubuntu-clock-app/reboot-desktop-i18n/+merge/230582 [09:55] sergiusens: I have added you as one of the reviewers, so you should be able to find the MP later. === zbenjamin_ is now known as zbenjamin [11:06] DanChapman, mzanetti: I need some help with https://code.launchpad.net/~nik90/ubuntu-clock-app/improve-timezone-error-handling/+merge/231070 [11:06] DanChapman, mzanetti: QtC says 9 + m_status = TimeZoneModel.Ready; is not possible since it expected a primary-expression before "." token.. whatever that means [11:08] nik90, :-D just looking now [11:09] my gut tells me it wants m_status = TimezoneModel::Ready [11:10] indeed it should be TimezoneModel::Ready [11:13] hmm I thought this was more tricky than it appeared [11:13] nik90, tricky in what way? [11:15] DanChapman: 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] DanChapman: since I am dealing with setting property changes, I am a bit more comfortable since I have done it before [11:16] I know, me <-- noob :D [11:22] nik90, 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:23] yes [11:25] nik90, I must say the "Add City" is rather snappy, found my location really quickly :-D [11:26] DanChapman: did you see the activity indicator? [11:26] DanChapman: 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] Either way awesome :) [11:26] yes it searched online for it :-) [12:20] popey: Do i have to append &release=utopic to http://geoname-lookup.ubuntu.com/?query=Farnborough? [12:20] popey: it seems to work without [12:50] DanChapman: hey I have implemented the network error part. It now shows a string if you are not connected to the internet. :) [12:50] DanChapman: I have one issue though. [12:51] DanChapman: 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:52] Hi all [12:53] I've found that my device is showing different time and top left corner and in settings [12:53] qtros: image? [12:53] trying to take screen) [12:53] nik90 but screencap hangs [12:53] qtros: no no which iamge number? [12:54] nik90 ah, latest, r193 [12:54] qtros: yup known promotion blocker [12:54] :/ [12:54] nik90 do you mean that someone already know about this bug? [12:54] qtros: yes [12:55] nik90 ok) [13:04] nik90, 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 off [13:05] DanChapman: just trying to search after switching it off [13:06] DanChapman: I may not be ending stopping the network request property once a search is done [13:09] DanChapman: 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:19] nik90, it seems to be working for me. Let me try again [13:19] nik90, 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 ui [13:21] DanChapman: let me list the steps here to reproduce the bug [13:21] DanChapman: 1. Ensure internet is available, and then open the app. [13:21] 2. Make a search for a online city [13:21] 3. Once the search results are shown, disable the internet. [13:22] 4. Clear the searchfield and then search again for a city online [13:22] 5. 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 indicator [13:22] DanChapman: can you check now if you get it? [13:24] nik90 following your steps it works as expected this is the result of step 4 http://imgur.com/R9Gz4md [13:26] ahh that's the wrong image. same result though [13:27] hmm let me try [13:29] nik90, ahh but if i try searching and then turn internet off and re-search the same city I get http://imgur.com/zpWGsNt [13:30] DanChapman: yup I see your issue :D but I can no longer reproduce my issue any more mysteriously [13:38] nik90: there's nothing in the code that uses it that I can see [13:42] nik90, 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 errors [13:42] bug 1341548 in Network Menu "Online detection does not work with confined apps on Nexus 4" [Critical,In progress] https://launchpad.net/bugs/1341548 [13:46] DanChapman: cool [13:47] DanChapman: so I use my reply error to detect if the server is up while the network status change will be based on ^^ [13:52] nik90, 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 conne [13:52] ction [13:54] :) [15:22] ybon: ship it! [15:23] ybon: and if i am not wrong most of apps are called "Maps" not "Map" [17:16] thanks nik90, can you file a bug about that? (link to file is at the bottom of the page) [18:37] daker: it's on QA phase ;) [18:38] daker: what about "Maps"? You mean I need to name it "Maps" instead of "Map"? [18:38] ybon: yes [18:38] what's the rationale? I missed it :) [18:39] ybon: just search for "Map app" then look at the results [18:39] in the store? [18:39] ybon: in google [18:39] - HERE Maps [18:40] - Google Maps [18:40] OpenStreetMap :) [18:40] - Maps app [18:40] but I'm fine with an "s" [18:41] :) [18:41] ybon: does the OSM api for place give enough details ? [18:42] https://github.com/yohanboniface/OSMTouch/blob/master/models/PoiModel.qml#L7 [18:43] the API does enough details for sure, but I'm using just a few of them for now [18:43] I need something a bit more dynamic [18:43] instead of listing all of them [18:43] I will still need some specific cases, for example to make a phone number start a call [18:43] or an URL open the browser [18:44] but I plan to have more properties displayed [18:44] ok [18:45] also, 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 list [18:47] ok [18:51] nik90: around? [18:54] ybon: lucky...just got home [18:55] :) [18:55] nik90: I've copied the PageWithBottomEdge component from your app [18:55] (shame on me) [18:56] I'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:57] ybon: I took it from the address book...:P [18:57] huhu [18:58] ybon: 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 up [18:58] ybon: 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:59] ybon: the more popular it gets, the more change it gets into the sdk [18:59] sure [19:00] it doesn't seem that my page component.onCompleted is called twice [19:00] and I think it's normal [19:00] so for now I've a page that is the bottom edge one, but I only populate its listmodel onCompleted [19:00] so this is called one when the app is loaded [19:00] once* [19:01] see https://github.com/yohanboniface/OSMTouch/blob/master/OSMTouch.qml#L361 [19:02] ybon: what kind of model are you using? [19:03] ListModel [19:03] see line 374 [19:05] ybon: You could clear your listmodel using clear() and perform the actions you do in the component.onCompleted signal again. [19:06] nik90: it's not called again [19:06] ybon: 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 again [19:06] ybon: once you know the bottom edge has swiped so much then perform the clear() and then init() functions by manually calling them [19:07] humm, that's an idea [19:08] next step being to highlight the search when you start swipping up,just like in the dialer app [19:08] so I need to make friend with this variable in any cases :) [19:09] check out the dialer app to see how they do it [19:09] that's what I would do [19:12] mhall119: 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:24] oh, ok, onComplete is called again when I've opened the page and closed it [19:25] so 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 there [19:25] so onCompleted is not the even I want [20:06] DanChapman, mzanetti: I put you both as reviewers of https://code.launchpad.net/~nik90/ubuntu-clock-app/improve-timezone-error-handling/+merge/231070. Enjoy :D [20:10] nik90: had a first look [20:10] commented on the MP [20:11] ah ... forgot i emmitted it twice..no wonder I saw the onStatusChanged produce outputs twice === chihchun_afk is now known as chihchun [20:33] nik90: it's wordpress, so most content is in the database [20:33] mhall119: ah ok..no worries === chihchun_afk is now known as chihchun [20:56] nik90: I've ended adding my event, not sure it's the best way, but it works for now ;) https://github.com/yohanboniface/OSMTouch/commit/a5fcfbbadc1d7d1d705b948d33792098f904b4ac [22:03] Does anyone ust QML? [22:04] I'm having trouble with accessing and loading an image for a background