=== chihchun_afk is now known as chihchun [07:10] good morning [08:29] zsombi: hey! I have a small question vs theming/default property in QML [08:29] zsombi: I have a generic component which has a hilight property (and I change some other properties based on that) [08:30] my thought was to due something like: [08:30] color: hilight ? "white" : color [08:30] for instance [08:30] but then the color is black on my Label for instance, not the default ubuntu theme color [08:30] I wan't to know if there is a best practice about "change this property only if this property has this value, otherwise leave default" [08:31] (ideally not in onCompleted as this could be dynamic) [08:40] do you think it's a case for Binding { when: }? === chriadam is now known as chriadam|away [09:57] popey: clock app, I start in EN_US, I add Paris France as a City, I change the language to Espana Espana, The list of cities updates so Paris Francia is displayed, but the translation is still in EN_US on the actual clock page [09:57] eh? [09:57] where did you change the language to Espana Espana ? [09:58] popey: system settings, so you select the first Spanish setting under the English ones [09:59] can you do me a screenshot? [09:59] of where you're seeing something incorrect [09:59] popey: system-settings → Language & Text → World map Display...... [10:00] popey: yeap firing it up one second [10:00] ta [10:04] popey: In English on the main clock page http://people.canonical.com/~davmor2/paris-in-en.png in spanish on the add city list http://people.canonical.com/~davmor2/paris-in-es.png [10:05] popey: it's like the city list in the clock face isn't translatable [10:08] popey: does it make more sense now? [10:08] not really [10:08] the word "Paris" _is_ translated in your second screenshot [10:08] Paris (english) is París (spanish) [note the accent over the i] i -> í [10:08] popey: and it is the sam language being used in both screenshots [10:09] same even [10:09] oh I see [10:09] popey: ie the first should look the same as the second [10:09] gotcha [10:09] popey: I'll write out the steps for you one second [10:09] * popey checks existing phone [10:10] unlikely to be a regression [10:13] davmor2: yeah, confirmed it's the same on the version in the store [10:13] want me to write the bug up? [10:14] http://people.canonical.com/~alan/screenshots/device-2015-07-23-111416.png [10:14] http://paste.ubuntu.com/11924502/ [10:14] on my retail bq running stock clock [10:15] popey: I can write up the bug, If it is in the current clock App I will let this one pass but obviously it will fail next time :) [10:16] thanks davmor2 [10:16] will bring it up at the meeting later today if you do it before then :) [10:22] popey: https://bugs.launchpad.net/ubuntu-clock-app/+bug/1477492 and I'll pass the click you gave me now :) [10:22] Ubuntu bug 1477492 in Ubuntu Clock App "Cities not translated on the main clock page if language is switched" [Undecided,New] [10:22] looks like the city get's saved as a string to the clockDB in the current locale, so on replay of that after the locale change would still bring back the string for the original language. [10:22] magic, thanks Saviq [10:22] er, davmor2 [10:22] sorry Saviq :) [10:22] popey, you're welcome anyway [10:23] popey: Saviq and davmor2 how the hell did you even get those two crossed? [10:23] renatu: ping [10:23] davmor2, we just looks so alike [10:23] -s [10:23] finger slightly to the left then pressed tab :) [10:23] renatu: could you pelase review this MP https://code.launchpad.net/~gary-wzl77/qtorganizer5-eds/fix_1445577/+merge/264489 ? [10:23] over-eager completion FTW [10:24] mihir: see comment from DanChapman on that bug :S [10:25] i don't see DanChapman's comment :- [10:25] popey: you talking about this bug right , https://bugs.launchpad.net/ubuntu-calendar-app/+bug/1445577 [10:25] Ubuntu bug 1445577 in Ubuntu Calendar App "Edit of reminder vaults event time back x hours" [High,Confirmed] [10:26] mihir: 11:22 < DanChapman> looks like the city get's saved as a string to the clockDB in the current locale, so on replay of that after the locale change would still bring back the string for the original language. [10:27] http://bazaar.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/utopic-3.0/view/head:/app/worldclock/WorldCityList.qml#L353 looks like where the raw string is being saved [10:27] thanks DanChapman [10:33] DanChapman, popey: yeah that was my assumption on seeing it, I figured it was just placing the string as it was somewhere and that collection was missing the translation part so the string wasn't updating on the fly as it were [10:36] It's definately an interesting one to solve :-) [10:41] DanChapman: I would hope that QML/QT wuold be clever enough to understand the difference between x = "boo" and x = i18n.tr"boo" and would save it to the database/dictionary whatever in the correct format right? [10:42] DanChapman: if so then in theory it's a really trivial fix === JanC_ is now known as JanC === _salem is now known as salem_ [14:30] didrocks: uuuh... sorry for late reply [14:31] didrocks: so you do color: hightlight ? "white" : color [14:31] didrocks: in here the LValue color is undefined, so it'll be black [14:31] if you want to use the default color when the highlight is not set, use states [14:33] didrocks: like Label { id: label; states: State { name: "hilghlighted"; when: highlight; PropertyChange { target: label; color: "white" }}} [14:34] zsombi: no worry :) I think that's mostly how I handled it (with Bindings, which seems equivalent to state in that case for me), thanks! [14:34] didrocks: Bindings is not equivalent [14:35] zsombi: yeah, I'll use states here, makes more sense [14:35] didrocks: that also preserves the state, but it doesn't restore the original values properly [14:35] indeed [14:35] didrocks: states do [14:36] I'll use this then [14:36] zsombi: btw, I was wondering about how I can access to a property from an object id by its name (a string) [14:36] didrocks: if you know the id, and the property name, then simply . [14:37] didrocks: but you may get in trouble if the object with the id doesn't exist or the property is not found [14:38] zsombi: the thing is that I want to pass that as a parameter I guess this example will make more sense: http://paste.ubuntu.com/11925470/ [14:38] Foo.qml needs the property (and not the value of the property) [14:39] didrocks: Binding on ..... wow... weird way to use it ;) [14:41] zsombi: just an example to illustrate what I want to pass to it :) [14:41] didrocks: it would work, but remember, using var type for proerties does hurt in performance [14:41] zsombi: actually, it doesn't work :/ [14:41] didrocks: so if you know the type you expect, you shoudl use that [14:41] it does pass the value, not the property itself [14:41] didrocks: yes, the property won't be passed for sure [14:42] didrocks: you'd need the property name itself? [14:42] zsombi: is there a way from the object id and property name (as a string) to resolve to the property? [14:43] zsombi: I guess you are maybe doing something like that for the StateSaver [14:43] didrocks: in C++ there is :) [14:43] didrocks: you can enumerate the properties of a QObject [14:43] didrocks: also in JS [14:43] so in QML as well [14:43] zsombi: sounds, hem :p [14:43] didrocks: for (var p in object) print(p) [14:44] yeah, not that elegant I guess [14:44] didrocks: also, you can access the property in JS through ["property_name"] syntax [14:44] oh, like any json object? [14:44] * didrocks tries [14:44] didrocks: but you said you know the property name... [14:44] yes [14:45] zsombi: yeah, that's exactly what I was looking for :) [14:45] thanks a lot for your help [14:45] (working well) [14:46] didrocks: awesome ;) [15:14] rpadovani: are you around? [15:15] ahoneybun, at your disposal [15:15] rpadovani: would you like my help with your blogs? English translations I mean :) [15:18] ahoneybun, :D If you want to correct my drafts I'll be more than grateful :-) [15:18] ok cool, want to me work on your newest blog post or help with your next one? [15:20] ahoneybun, I don't have any other blog post in mind atm, so if you work on my last one it would be awesome. Thank you *so* much [15:21] really, I can't say how much I appreciate that [15:21] I'll work on the Meizu MX4 OTA-5 one then [15:21] I thank you for the updates about that device [15:21] thanks :-) I'll drop you an email when I'm thinking to a new article :-) [15:23] awesome rpadovani I'll have this done in a few [15:33] popey, how about a hangout? :) [15:33] hey [15:45] rpadovani: can you msg me your email? === chihchun is now known as chihchun_afk [16:17] Look good rpadovani ? [16:20] ahoneybun, looks awesome, I already updated my website, thanks so much! [16:21] Np rpadovani happy to help === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk === JamesTai1 is now known as JamesTait [18:19] kenvandine: hi! I'm trying to do something with the content hub, but I don't know if it's possible :-) [18:19] kenvandine: when my app gets an incoming transfer, I want to show information on what is the source (application name and icon) [18:20] ah... [18:20] kenvandine: so, I have a ContentPeer {} element, and when I get an incoming transfer, I set its appId to transfer.source [18:20] well, the appId of the source should be there [18:20] yeah [18:21] kenvandine: when the source is webbrowser-app it doesn't work: no name or icon is loaded [18:21] kenvandine: is it because it's not a click app? [18:21] shouldn't be [18:21] so... [18:21] it's possible that you need the appId when the ContentPeer is constructed [18:22] * kenvandine doesn't recall offhand [18:22] kenvandine: but even when not using the ContentPeer, I get this when trying to load the icon: QML ImageWithFallback: Failed to get image from provider: image://content-hub/webbrowser-app [18:30] Elleo, ^^ do you think that should work with our image provider? [18:30] i think that might only work if the peer is created [18:45] kenvandine: I wonder if it's because the webbrowser-app doesn't register itself as a CH source? [19:07] mardy, oh... perhaps [19:12] kenvandine: so, if an app can save images (like the browser), but doesn't have a pool of images available to choose from, this app won't be a CH source, but it can still use the CH to send images to other apps, right? [19:14] mardy, right [19:14] but it does it via download manager [19:14] i hands off the download [19:14] and download manager charges it [19:14] mardy, you can't pick content from the browser [19:15] kenvandine: ah, so the webbrowser app doesn't talk to the CH directly? [19:15] it does to get a list of peers [19:15] and it's still the source of the transfer [19:15] but it's special :) [19:15] kenvandine: that is before or after the download has completed? [19:15] before [19:17] kenvandine: OK, I need to study it a bit :-) [19:17] mardy, check with Elleo tomorrow, he knows more about the image provider [19:17] kenvandine: ok, I will, thanks [20:44] Hi, is there a way to port the "qt-creator example project" 'CollidingMice' to run it on a ubuntu phone device emulator ? [20:55] up [20:56] otherwise said, is there a proper way to code C++ app without using (or not to much) Qml ? [20:57] robert35: I don't know what example you're talking about. But you'll need some QML to bring up graphics. You can't use traditional QtWidgets. Unless of course you go all openGL(ES) or SDL [20:58] yes a litlle bit is not a major problem, but i want my app to be structured from c++ , not from qml [20:59] I'd suggest to try the QML app with a C++ plugin in QtCreator [21:00] the exampl app is available within qt-creator ide (on the example tab) [21:00] at least to get an idea of how it can work [21:00] and you can just as well do the reverse, C++ app with QML UI [21:00] it's a matter of taste [21:01] i ll give it a try...let see === chihchun_afk is now known as chihchun === salem_ is now known as _salem