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