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