[05:59] <zsombi> karni: still here?
[06:00] <zsombi> karni: sorry, dude, I was away in the past daze
[06:01] <zsombi> karni: so, if you check the docs, apl.removePage(anyPage) removes the pages added to the tree of pages which have the _anyPage_ as ancestor
[06:02] <zsombi> karni: therefore if you call it on the apl.primaryPage, that call will remove every page that has been added to the APL except the primary one.
[06:03] <zsombi> karni: and this is supposed to be done synchronously, there is no async requirement in cleanup
[06:50] <chesedo> for a js scope, where should images (emblems) be stored and how will their uri be?
[07:58] <karni> zsombi: np! yes, I was most interested if it was sync, because I added a page right after that call. in any case, it's all good now :)
[08:24] <zsombi> karni: so you got it sorted?
[08:25] <karni> zsombi: yes, thank you. works as expected :)
[08:25] <zsombi> karni: huhh.. glad to hear :D
[08:26] <karni> zsombi: I had a code that re-set the dialog in a destructor of another (which after switching to APL made no longer sense), thank you :)
[08:26] <karni> :))
[08:26] <zsombi> ;)
[10:53] <nik90> faenil, Hi, I need your opinion. In Podbird we have an episodes page which looks like http://imgur.com/GdIFII6. The listitemlayout seems like the most logical/perfect fit for this scenario. However I am not sure what to do about the little paper icon that denotes whether an episode has been downloaded or not. Do you have any suggestions?
[10:53] <nik90> faenil, if not for the little paper icon, it would be a simple title.text and subtitle.text implementation.
[10:54] <faenil> nik90: exactly...because of that Icon, you have to use SlotsLayout with a custom "mainSlot"
[10:54] <faenil> avoid using Column for the label + Row for the icon ad subtitle though, let's not slow it down :)
[10:55] <nik90> faenil, but would I still get the same performance optimization that you get with ListItemLayout?
[10:55] <nik90> that's exactly how we are doing it now, and its killing performance in this page which shows an average of 200 listitems
[10:55] <faenil> what do you mean? you're using SlotsLayout now?
[10:56] <nik90> No no...atm we're using a custom list delegate. And in that custom delegate I used column+row to do the positioning that you see in the screenshot which kills performance.
[10:56] <faenil> ListItemLayout derives from SlotsLayout, and adds 3 labels with a kind-of hardcoded positioning to improve perf
[10:56] <faenil> nik90: ah ok, sure :)
[10:56] <nik90> When I switch to SlotsLayout, how do I go about positioning the labels + icons? Using Anchors?
[10:56] <nik90> would that help improve performance?
[10:57] <faenil> the main performance improvement will be moving to SlotsLayout
[10:57] <faenil> instead of the old ListITems module
[10:57] <faenil> (if you're using that module)
[10:57] <nik90> No I'm using ListItem (new ones) without ListItemLayout or SlotsLayouts
[10:58] <faenil> then getting rid of Column and Row should be a bonus, you should get higher perf with anchors, yes
[10:58] <faenil> mmm and that's killing performance? strange...
[10:58] <faenil> can I see the delegate?
[10:58] <nik90> sure, one sec
[10:58] <nik90> faenil, http://bazaar.launchpad.net/~michael-sheldon/podbird/trunk/view/head:/app/components/ListDelegate.qml
[10:59] <nik90> faenil, do note that it is a very generic delegate that we use in several places which is why it is big
[10:59] <nik90> however it is managed using loaders and components that are only loaded when required.
[10:59] <faenil> ahm you're not using Row, you're using RowLayout and plenty of columns :D
[11:00] <faenil> RowLayout is much heavier than Row, as far as I could see
[11:00] <nik90> I figured not explicitly defined left and right anchors and using RowLayout will help code readability.
[11:00] <nik90> but I see that it comes performance drawback
[11:01] <faenil> yeah, do you need RowLayout though? or can Row be enough for you?
[11:01] <nik90> I could do that and bring back the anchor definitions.
[11:02] <faenil> why anchors? it's still Row
[11:02] <nik90> faenil, true but then the title text will not elide/wrap correctly with either defining the width/anchor
[11:02] <faenil> I'm asking if you can use Row instead of RowLayout
[11:02] <faenil> without* defining width, you mean
[11:02] <nik90> yes
[11:03] <nik90> which RowLayout takes care of automatically
[11:03] <faenil> sure, you'd have to creating a binding on width
[11:03] <nik90> okay
[11:03] <faenil> but that's probably much better than using RowLayout, if you need it just for that
[11:03] <faenil> (but please test and let me know)
[11:03] <nik90> I needed multiple columns to show a progress bar as seen in http://imgur.com/IyTasJj
[11:04] <nik90> its a bit complicated :P since it is generic
[11:04] <nik90> I realize that now, and will stick to using specific layouts for individual pages. should make it easier to handle
[11:04] <faenil> which is a problem in itself :) you shouldn't be reusing the same delegate for different views with different needs
[11:05] <nik90> :)
[11:05] <faenil> yep, of course promote code reuse
[11:05] <faenil> just don't but the burdain on pages that don't need it :)
[11:05] <faenil> don't put*
[11:05] <nik90> yes
[11:06] <nik90> I dint think RowLayouts and 2 column would hit performance so much. But I suppose saving even few ms on loading item of each delegate matters here
[11:07] <faenil> nik90: have you tried QtC profile?
[11:08] <faenil> profiler*
[11:08] <nik90> faenil, I have used it though not as much as I should be.
[11:08] <nik90> I profiled podbird when we switched from the old listitems to the new one.
[11:09] <faenil> that should quickly show you the difference in instantiation time
[11:09]  * nik90 checks now
[11:37] <nik90> faenil, If I for now forget about the paper-icon and use ListItemLayout, 200 listitems just loads almost instantly :D. I will check with podbird designer if we can show the paper-icon somewhere else in the trailing slot perhaps.
[11:37] <faenil> haha :)
[11:38] <faenil> glad to hear :)
[11:38] <faenil> I still have something in my TODO to further improve SlotsLayout (and ListItemLayout as a consequence) performance :) so that could still get a bit faster
[11:40] <nik90> wow!
[11:42] <faenil> not sure by how much, I'm looking forward to having time to get to that :)
[11:42] <faenil> probably just a tiny bit...but it's all good :D
[11:53] <nik90> faenil, How do I prevent title.text from being elided? I set elide: Text.ElideNone and set it to wordWrap. However now I just see it get cut off. If it helps I also set width: layout.width - trailingSlotIcon.width
[11:53] <nik90> I noticed that only summary.text wraps. Both title and subtitle just elide. Is that by design?
[11:59] <faenil> talking about ListItemLayout?
[11:59] <faenil> nik90: ^
[11:59] <nik90> faenil, yes
[12:01] <faenil> nik90: title and subtitle have max 1 line, summary has 2, that's the default value by design
[12:01] <faenil> of course that can be customized
[12:02] <faenil> (even though you will at that point not follow the optimal design, I guess)
[12:02] <faenil> check out "maximumLineCount" property of Text
[12:02] <faenil> (QML Text)
[12:02] <nik90> faenil, podcast titles are quite big, cant do much about it :/
[12:02] <nik90> If I elide, we lose out quite a bit
[12:03] <faenil> nik90: and since you had this question, I guess I should add that info to ListItemLayout documentation
[12:04] <nik90> faenil, hmm..If I set maximumLineCount: 2, then the title's 2nd line and subtitle.text collide vertically.
[12:04] <faenil> nik90: that was fixed in December, I believe...I guess there hasn't been a new release since, or you don't have the updated packages :)
[12:04] <faenil> in Dec or beginning of Jan, don't remember when I fixed it
[12:05] <nik90> faenil, testing this on rc-proposed phone image..pretty sure I have updated packages..It conflicts between title and summary. Let me try changing summary to subtitle.
[12:05] <faenil> nik90: yes, that's what I fixed
[12:05] <faenil> can you check what version of the uitk you have on the phone?
[12:07] <nik90> faenil, 1.3.1795+15.04.20160106-0ubuntu1
[12:08] <nik90> will update to today's image and check again if the bug persists
[12:12] <nik90> faenil, running latest rc-proposed channel, with 1.3.1795+15.04.20160106-0ubuntu1..still has bug. Shall I report it?
[12:13] <faenil> nik90: no, wait for me to check what version has the fix
[12:13] <nik90> ack.
[12:14] <faenil> nik90: bad luck, it went in for r1800 :D
[12:14] <nik90> ah man :P
[12:14] <faenil> so, all good, you'll get the fix as soon as the uitk packages are updated
[12:14] <faenil> (we're at 1869 now)
[12:15] <nik90> yup, will wait it out. thnx for checking.
[12:16] <faenil> nik90: p
[12:16] <faenil> np
[12:16] <faenil> nik90: just use 1 line for the moment, keep tight :D
[12:17] <nik90> faenil, sure
[12:28] <timp> just published: https://developer.ubuntu.com/en/blog/2016/02/24/pageheader-tutorial/
[12:30] <Elleo> nik90: what about prepending the paperclip emoji character to the second line of text in the list item? Should look visually very similar, so we get to keep the paperclip and get the speed improvements :) http://emojipedia.org/paperclip/
[12:33] <nik90> Elleo, that should work! will do that now.
[12:34] <Elleo> nik90: cool :)
[12:34] <nik90> Elleo, I wasn't exaggerating though..the episodes page loads really fast now :)
[12:34] <Elleo> awesome :)
[13:07] <nik90> timp, really good tutorial! Thnx! https://developer.ubuntu.com/en/blog/2016/02/24/pageheader-tutorial/
[13:10] <timp> nik90: thanks :) you are welcome.
[13:44] <faenil> nik90: oh before I forget...also try getting rid of as many "alias" as possible
[13:45] <faenil> nik90: i.e. don't alias title.text, title.here, title.there
[13:45] <faenil> just expose title and the client components will set title.text, title.here, title.there
[13:45] <faenil> that means many less bindings to create
[13:52] <nik90> faenil, ok. So basically create a property string title, and then use that within the client components. thnx
[13:54] <faenil> nik90: no, alias the full component, not its properties
[13:54] <faenil> property alias title
[13:54] <faenil> and then client will do
[13:54] <faenil> title.text : "bla", title.color: "boo"
[13:55] <faenil> that saves you 1 alias creating (which is a binding, which is expensive)
[13:55] <faenil> 1 alias per property
[13:55] <faenil> and that contributes to faster list scrolling :D
[13:56] <nik90> ok
[16:38] <faenil> jdstrand: I created https://bugs.launchpad.net/ubuntu/+source/click-apparmor/+bug/1549369 as we have to get it fixed, no matter what Snappy does, imho
[16:39] <faenil> we have to get it fixed in the .click world, because that's what the developers are using :)
[20:13] <boghison> Hi! I need some help: In a Javascript scope, when changing departments, a new query isn't run, so how do I monitor this? (for some reason there's a log in the console, something about setting a nav id)
[20:50] <m_jimmer> Hi there I am having a odd issue with qmlregisterSingletonType.  The issue has to do with signals and sending them to a Connections point in QMl.  Here is the Simple code http://pastebin.com/4H9ES2SX
[20:50] <m_jimmer> all in all it is not firing the signals for anything that is emit
[20:50] <m_jimmer> Or maybe it is but the connection point to QMl is not reviving them .  Either way I can not figure it out
[21:56] <nik90> ahayzen, ping
[21:56] <ahayzen> nik90, pong
[21:57] <nik90> ahayzen, hey, I wanted to ask you about the Playlist support. How easy and stable is the implementation?
[21:58] <nik90> For Podbird, we just a Queue support. So no need to create/rename/delete playlist stuff
[21:58] <nik90> I was thinking of saving the queue in local storage, and then passing it to playlist var in Multimedia{}. Does that make sense?
[22:02] <ahayzen> nik90, it is *pretty* stable but still some missing features
[22:03] <ahayzen> nik90, i wanna fix it so you can then just do save()/load() on the playlist
[22:03] <ahayzen> nik90, http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/components/Player.qml is the file to look at
[22:03] <ahayzen> nik90, we currently save the queue to/from a localstorage db
[22:04] <ahayzen> nik90, i'm gonna go in a minute, but i'll be about tomorrow afternoon onwards if you wanna run through things?
[22:06] <nik90> ahayzen, sure
[22:06] <nik90> tty later
[22:06] <nik90> will look at it
[22:06] <ahayzen> awesome :-) leave msgs on telegram if you have any immediate questions
[22:06] <ahayzen> o/
[22:24] <m_jimmer> nik90, I am in the middle of exposing QSQLDatabase QSqlQuery QSQlModel QSQlRecord to QML I can hand that off in maybe 3 hours or so
[22:25] <nik90> m_jimmer, ?
[22:25] <m_jimmer> I also need almost the same thing as you.  But found that LocalStorage was missing many things and creating things like models from Arrays was not nice in the profiler
[22:25] <nik90> ah ok
[22:26] <m_jimmer> nik90, give me 3 hours or so.
[22:27] <nik90> m_jimmer, I will not be online in 3hrs..its 11.30 PM here..can u link it to my email (nik90 at ubuntu dot com)
[22:30] <m_jimmer> nik90, Ok will do.  I just finished QSqlDatabase.
[22:39] <elimisteve> popey: Got any estimates for how many scopes will be entering https://developer.ubuntu.com/en/showdown/ ?
[22:39] <elimisteve> Anyone? I assume there will be several JS-based scopes in particular