=== salem_ is now known as _salem [05:59] karni: still here? [06:00] karni: sorry, dude, I was away in the past daze [06:01] 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] 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] karni: and this is supposed to be done synchronously, there is no async requirement in cleanup [06:50] for a js scope, where should images (emblems) be stored and how will their uri be? [07:58] 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] karni: so you got it sorted? [08:25] zsombi: yes, thank you. works as expected :) [08:25] karni: huhh.. glad to hear :D [08:26] 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] :)) [08:26] ;) === dbarth__ is now known as dbarth [10:53] 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] faenil, if not for the little paper icon, it would be a simple title.text and subtitle.text implementation. [10:54] nik90: exactly...because of that Icon, you have to use SlotsLayout with a custom "mainSlot" [10:54] avoid using Column for the label + Row for the icon ad subtitle though, let's not slow it down :) [10:55] faenil, but would I still get the same performance optimization that you get with ListItemLayout? [10:55] 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] what do you mean? you're using SlotsLayout now? [10:56] 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] ListItemLayout derives from SlotsLayout, and adds 3 labels with a kind-of hardcoded positioning to improve perf [10:56] nik90: ah ok, sure :) [10:56] When I switch to SlotsLayout, how do I go about positioning the labels + icons? Using Anchors? [10:56] would that help improve performance? [10:57] the main performance improvement will be moving to SlotsLayout [10:57] instead of the old ListITems module [10:57] (if you're using that module) [10:57] No I'm using ListItem (new ones) without ListItemLayout or SlotsLayouts [10:58] then getting rid of Column and Row should be a bonus, you should get higher perf with anchors, yes [10:58] mmm and that's killing performance? strange... [10:58] can I see the delegate? [10:58] sure, one sec [10:58] faenil, http://bazaar.launchpad.net/~michael-sheldon/podbird/trunk/view/head:/app/components/ListDelegate.qml [10:59] faenil, do note that it is a very generic delegate that we use in several places which is why it is big [10:59] however it is managed using loaders and components that are only loaded when required. [10:59] ahm you're not using Row, you're using RowLayout and plenty of columns :D [11:00] RowLayout is much heavier than Row, as far as I could see [11:00] I figured not explicitly defined left and right anchors and using RowLayout will help code readability. [11:00] but I see that it comes performance drawback [11:01] yeah, do you need RowLayout though? or can Row be enough for you? [11:01] I could do that and bring back the anchor definitions. [11:02] why anchors? it's still Row [11:02] faenil, true but then the title text will not elide/wrap correctly with either defining the width/anchor [11:02] I'm asking if you can use Row instead of RowLayout [11:02] without* defining width, you mean [11:02] yes [11:03] which RowLayout takes care of automatically [11:03] sure, you'd have to creating a binding on width [11:03] okay [11:03] but that's probably much better than using RowLayout, if you need it just for that [11:03] (but please test and let me know) [11:03] I needed multiple columns to show a progress bar as seen in http://imgur.com/IyTasJj [11:04] its a bit complicated :P since it is generic [11:04] I realize that now, and will stick to using specific layouts for individual pages. should make it easier to handle [11:04] which is a problem in itself :) you shouldn't be reusing the same delegate for different views with different needs [11:05] :) [11:05] yep, of course promote code reuse [11:05] just don't but the burdain on pages that don't need it :) [11:05] don't put* [11:05] yes [11:06] 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] nik90: have you tried QtC profile? [11:08] profiler* [11:08] faenil, I have used it though not as much as I should be. [11:08] I profiled podbird when we switched from the old listitems to the new one. [11:09] that should quickly show you the difference in instantiation time [11:09] * nik90 checks now [11:37] 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] haha :) [11:38] glad to hear :) [11:38] 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] wow! [11:42] not sure by how much, I'm looking forward to having time to get to that :) [11:42] probably just a tiny bit...but it's all good :D [11:53] 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] I noticed that only summary.text wraps. Both title and subtitle just elide. Is that by design? [11:59] talking about ListItemLayout? [11:59] nik90: ^ [11:59] faenil, yes [12:01] nik90: title and subtitle have max 1 line, summary has 2, that's the default value by design [12:01] of course that can be customized [12:02] (even though you will at that point not follow the optimal design, I guess) [12:02] check out "maximumLineCount" property of Text [12:02] (QML Text) [12:02] faenil, podcast titles are quite big, cant do much about it :/ [12:02] If I elide, we lose out quite a bit [12:03] nik90: and since you had this question, I guess I should add that info to ListItemLayout documentation [12:04] faenil, hmm..If I set maximumLineCount: 2, then the title's 2nd line and subtitle.text collide vertically. [12:04] 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] in Dec or beginning of Jan, don't remember when I fixed it [12:05] 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] nik90: yes, that's what I fixed [12:05] can you check what version of the uitk you have on the phone? [12:07] faenil, 1.3.1795+15.04.20160106-0ubuntu1 [12:08] will update to today's image and check again if the bug persists [12:12] faenil, running latest rc-proposed channel, with 1.3.1795+15.04.20160106-0ubuntu1..still has bug. Shall I report it? [12:13] nik90: no, wait for me to check what version has the fix [12:13] ack. [12:14] nik90: bad luck, it went in for r1800 :D [12:14] ah man :P [12:14] so, all good, you'll get the fix as soon as the uitk packages are updated [12:14] (we're at 1869 now) [12:15] yup, will wait it out. thnx for checking. [12:16] nik90: p [12:16] np [12:16] nik90: just use 1 line for the moment, keep tight :D [12:17] faenil, sure === _salem is now known as salem_ [12:28] just published: https://developer.ubuntu.com/en/blog/2016/02/24/pageheader-tutorial/ [12:30] 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] Elleo, that should work! will do that now. [12:34] nik90: cool :) [12:34] Elleo, I wasn't exaggerating though..the episodes page loads really fast now :) [12:34] awesome :) [13:07] timp, really good tutorial! Thnx! https://developer.ubuntu.com/en/blog/2016/02/24/pageheader-tutorial/ [13:10] nik90: thanks :) you are welcome. [13:44] nik90: oh before I forget...also try getting rid of as many "alias" as possible [13:45] nik90: i.e. don't alias title.text, title.here, title.there [13:45] just expose title and the client components will set title.text, title.here, title.there [13:45] that means many less bindings to create [13:52] faenil, ok. So basically create a property string title, and then use that within the client components. thnx [13:54] nik90: no, alias the full component, not its properties [13:54] property alias title [13:54] and then client will do [13:54] title.text : "bla", title.color: "boo" [13:55] that saves you 1 alias creating (which is a binding, which is expensive) [13:55] 1 alias per property [13:55] and that contributes to faster list scrolling :D [13:56] ok [16:38] 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:38] Launchpad bug 1549369 in click-apparmor (Ubuntu) "Apparmor profiles not updated after deploying an app without increasing its version" [Undecided,New] [16:39] we have to get it fixed in the .click world, because that's what the developers are using :) === davidcalle is now known as davidcalle_afk [20:13] 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) === ljp is now known as lpotter [20:50] 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] all in all it is not firing the signals for anything that is emit [20:50] Or maybe it is but the connection point to QMl is not reviving them . Either way I can not figure it out === salem_ is now known as _salem [21:56] ahayzen, ping [21:56] nik90, pong [21:57] ahayzen, hey, I wanted to ask you about the Playlist support. How easy and stable is the implementation? [21:58] For Podbird, we just a Queue support. So no need to create/rename/delete playlist stuff [21:58] 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] nik90, it is *pretty* stable but still some missing features [22:03] nik90, i wanna fix it so you can then just do save()/load() on the playlist [22:03] 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] nik90, we currently save the queue to/from a localstorage db [22:04] nik90, i'm gonna go in a minute, but i'll be about tomorrow afternoon onwards if you wanna run through things? [22:06] ahayzen, sure [22:06] tty later [22:06] will look at it [22:06] awesome :-) leave msgs on telegram if you have any immediate questions [22:06] o/ [22:24] 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] m_jimmer, ? [22:25] 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] ah ok [22:26] nik90, give me 3 hours or so. [22:27] 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] nik90, Ok will do. I just finished QSqlDatabase. [22:39] popey: Got any estimates for how many scopes will be entering https://developer.ubuntu.com/en/showdown/ ? [22:39] Anyone? I assume there will be several JS-based scopes in particular