/srv/irclogs.ubuntu.com/2016/03/01/#ubuntu-app-devel.txt

=== salem_ is now known as _salem
dpmtimp, zsombi_, kalikiana, good morning! Quick question: do you happen to know how we relocate the path where the sql databases for app data are looked for in clicks? I think the sqlite databases for apps that use LocalStorage are included inside the click package's directories, right?09:48
kalikianadpm: http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/staging/view/head:/src/Ubuntu/Components/plugin/ucapplication.cpp#L7309:52
dpmthanks kalikiana. Is there a way I could use e.g. an environment variable to define the location? The context is that I'm creating a snap package for the desktop, which installs the calculator app in a write-only location. It all runs, but it expects the DB on that write-only location, and obviously, it can't write to it. Here's what it looks like when I launch it:09:55
dpmhttps://paste.ubuntu.com/1525297009:55
kalikianawrite-only? not sure what that really means here09:57
kalikianadpm: you can override XDG_DATA_HOME09:57
dpmkalikiana, that whole directory where the snap is installed is write-only: /snaps/ubuntu-calculator-app.sideload/INeOcWEVXTPI/usr/share/com.ubuntu.calculator/09:57
dpmwhen the app tries to create a ./Databases directory in there it then fails09:58
dpmI'm already overriding XDG_DATA_HOME, that doesn't seem to have an effect on LocalStorage09:58
dpmhttp://pastebin.ubuntu.com/1525354410:00
dpmin fact, overriding a bunch of XDG_* locations10:00
kalikianadpm: but... your export points to the folder that you can't used according to the logs...10:02
dpmkalikiana, actually... really good point10:02
=== JMulholland_ is now known as JMulholland
dpmkalikiana, overriding XDG_DATA_HOME worked for the databases, but it seemed to broke fontconfig (the app loaded, with no fonts visible). I'll keep trying :)10:31
nik90appdevs, can one of you review https://code.launchpad.net/~nik90/ubuntu-calendar-app/migrate-listitemlayout/+merge/287309 when you're free. thnx10:44
kalikianatimp: zsombi_ although I can also mention it here to increase visibility ;-) https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/155166510:49
ubot5Launchpad bug 1551665 in ubuntu-ui-toolkit (Ubuntu) "was created without a valid QML Engine" [Undecided,New]10:49
zsombi_kalikiana: good catch :)10:50
zsombi_to discuss it here I mean ÉÖ10:50
zsombi_:) stupid layout10:50
timpkalikiana: can you include some text on how to reproduce (which uitk revision and which qml app to start)?10:51
kalikianatimp: the word "building" is not clear?10:52
timpoh, right :)10:52
timpwhy are items created while building?10:53
timpI just built staging without errors10:53
kalikianatimp: https://jenkins.ubuntu.com/ubuntu-sdk/job/ubuntu-ui-toolkit-ci-amd64-stable/412/consoleFull10:54
DanChapmannik90, done :-)11:01
nik90DanChapman, thnx :)11:01
nik90DanChapman, pushed the fixes11:07
DanChapmanhah that was ninja quick :-)11:08
nik90the fixes required were too small11:09
DanChapmannik90, have you got a link handy to the new design spec? Would be cool to take a look11:10
nik90DanChapman, https://www.dropbox.com/sh/suo2jb5liedn1x5/AADuNFySY3wsxit0JGl9LsFAa?dl=011:10
nik90I also added it to the v0.5 milestone description at https://launchpad.net/ubuntu-calendar-app/+milestone/0.511:10
zsombi_timp: those logs are created by the qmlapicheck itself (and/or with qmlplugindump?), as that creates the components to get their API and so it doesn't get a QML engine set...11:17
DanChapmannik90, thanks :-)11:19
timpzsombi_, kalikiana: maybe it is just that branch that has the failures? I don't get warnings when I run qmlapicheck.sh locally on staging11:19
kalikianatimp: it's not just that branch, as I also see them locally11:20
kalikianatimp: and you won't see any warnings if you just re-build11:21
kalikianabe sure to do a clean build11:21
kalikianatimp: oh, why apicheck?11:22
timpbecause of what zsombi_ said^11:26
kalikianatimp: I don't see how apicheck would ever show them given that it suppresses QML errors by default...11:31
kalikiana(which it does because the real amount of errors from Ubuntu.Components is unbearable)11:32
kalikianatimp: I think it might be "qmlplugindump Ubuntu.Components 1.3"11:34
kalikianawhich wouldn't run on an unchanged build11:35
timpzsombi_: do we set a custom flickDeceleration or maximumFlickVelocity somewhere for the flickables and/or listviews that we use?11:36
zsombi_timp: nope11:42
zsombi_timp: but we have a bug for that11:42
timpzsombi_: this bug is related I guess https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/155168111:46
ubot5Launchpad bug 1551681 in ubuntu-ui-toolkit (Ubuntu) "Sections scroll too fast" [Medium,In progress]11:46
zsombi_timp: not only that one11:47
zsombi_timp: picker has at least one, then ListView another one11:47
timpzsombi_: I'm trying to find the other one. Do you happen to have the link?11:47
zsombi_timp: nope, but I remember having those... just write the keywords in the search11:47
timpfaenil: yeah, I wanted to quickly fix that scrolling-speed bug together with the left/right arrows bug on the sections. But I think for the scrolling we need more specs.11:49
faeniltimp: a solution for "too fast" is to to slow it down, right? not disable the kinetic scrolling :D11:51
timpfaenil: right. Basically that would be an infinite flickDeceleration ;)11:52
faenil??11:52
timpfaenil: you decelerate from a velocity > 0 to a velocity of 0 instantly11:53
faenilif you set a high deceleration, then you should be able to scroll without it scrolling too fast11:53
faeniltimp: why you want it to go to 0 instantly, that I don't get :)11:53
timpfaenil: I meant that you are right, setting it to 0 instantly is probably a bit too extreme.11:53
faeniltimp: ah, alright :)11:54
timpfaenil: maybe this is a bug for you to take? Because it will need some testing&feedback from a UX designer11:54
faeniltimp: I'm full, full11:54
timpoh, ok11:54
timpI was just about to ask you for a review of https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/75-sectionsScroll/+merge/28762011:54
timpfaenil: ^11:54
faeniltimp: sorry, I'd have to read the logic again to make sure that makes sense, and I dont have time now :/ I will leave a comment though11:58
timpfaenil: ok, I will ask for another reviewer11:59
faeniltimp: thanks, sorry, otherwise I can have a look later today if you remind me12:00
timpfaenil: it is not super urgent. So if you can review it today that is fine.12:00
timpotherwise I can ask another reviewer, no problem as well12:00
faenilok, please remind me later timp12:00
timpok12:00
faeniltimp: reviewed! :)12:32
timpfaenil: great, thanks :) I'll read your comments after the standup12:33
faenilthanks12:33
timp*after lunch12:41
=== _salem is now known as salem_
renatunik90, hi are you working on calendar app?13:20
nik90renatu, yes :)13:20
nik90renatu, Working on implementing https://www.dropbox.com/sh/suo2jb5liedn1x5/AADuNFySY3wsxit0JGl9LsFAa?dl=013:21
renatunik90, I am rewriting all event layout code13:21
dpmkalikiana, another question: how do we get i18n.tr() to load the translations from the click app's directory instead of the system one? I'll need to make sure that happens as well for the calculator snap, and I can't recall how we're doing it for clicks13:36
kalikianadpm: Similar to other paths but slightly less elegant because it's not using a standard variable http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/staging/view/head:/src/Ubuntu/Components/plugin/i18n.cpp#L11613:52
nik90JMulholland, hey, we have a bug with the clock app -> https://bugs.launchpad.net/canonical-devices-system-image/+bug/151889214:23
ubot5Launchpad bug 1518892 in Ubuntu UX "[clock] Switching alarm on/off" [Medium,Triaged]14:23
nik90JMulholland, one proposed solution by michal is "What do you all think about adding trailing action to edit an alarm? That way we can have all area of alarm's ListItem for enabling/disabling an alarm."14:24
nik90I think that is a really good solution to fix the issue.14:24
timpfaenil: in the SectionsStyle, do you remember why you used sectionsListView.originX to clamp the animation.to?14:44
timpfaenil: originX should be 0, and it seems that some times (when you are scrolled to the right), the estimation of originX by the ListView is wrong14:44
faenilwhat do you mean "originX should be 0" ?14:46
faeniloriginX changes14:46
timpfaenil: maybe it shouldn't14:50
timpfaenil: some times when I use the left button, it overshoots when we use originX for the clamping.14:50
timpfaenil: with 0 it works fine14:50
timpwhy should it change?14:51
timphttp://doc.qt.io/qt-5/qml-qtquick-flickable.html#originX-prop says: This is usually (0,0), however ListView and GridView may have an arbitrary origin due to delegate size variation, or item insertion/removal outside the visible region.14:52
timpbut it seems like in this case when it is not 0 it is just wrong14:52
timpfaenil: interesting, on the right side it overshoots if I DON'T use originX.. on the left it breaks if I DO use it.14:55
faeniltimp: because that's the way ListView works, originX change swhen the content starts triggering the dynamic contentWidth/height algo14:55
faeniltimp: and that algorithm is why sections should have moved away from listview14:55
popeyballoons: yay. 2.1.308 built!15:41
balloonswoot15:42
balloonswith a proper version number!15:42
popeyballoons: thanks!15:43
balloonsrunning https://core-apps-jenkins.ubuntu.com/view/Maintenance%20Jobs/job/fix-samba-chroot/ to fix samba again15:44
popeyk15:45
=== _salem is now known as salem_
Asdf__Hello16:20
=== Qwerty is now known as Guest61511
Guest61511Hello16:23
Guest61511Hello there..16:30
Guest61511Anyone tell me .. is it possible to take info from input field of html5 and use it in CPP file16:32
mptHi everyone, I’m working on the design of the toolkit itself, specifically the text field control. There are some cases, like Contacts and Notes, where it’s obvious that a particular area is for typing into, so it doesn’t need a border or a background. Rather than having to remove those properties individually, I think maybe there should be a single property for saying to the toolkit, “just show the text, please”16:32
mptThe question is: What would be a good name for that property? Ideas so far: unrendered, undrawn, flat, noDecoration, basic, noVisuals16:33
Guest61511Any developer there???16:35
Guest61511appdevs16:36
timpfaenil: I updated https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/75-sectionsScroll/+merge/28762016:43
timpmpt: it could be that we shouldn't have a separate property, but use a different TextFieldStyle16:44
DanChapmanmpt, well UbuntuShape uses an "aspect" property to change the graphical style. Maybe do the same for Text inputs. i.e aspect: TextField.Flat16:44
mpttimp, sure, but then, what should the style be called :-)16:44
timpmpt: that would mean that the developer has to set something like styleName: "TextFieldNoDecorationStyle"16:44
timpmpt: right16:44
timpmpt: in that case, TextFieldNoDecorationStyle :)16:45
timpor TextFieldCleanStyle16:46
faeniltimp: commented16:48
timpfaenil: for the hovering logic, the function was executed on every mouse move event, but we need it only when pressed16:50
timpfaenil: right, contains() is a good name. I'll change that. I still have to think about the unit tests16:50
faeniltimp: I think the new logic is broken, read latest comment16:51
timpfaenil: I thought the amount of movement between pressed and released is restricted for a click. Let me check that.16:53
faeniltimp: no16:54
faenil"This signal is emitted when there is a click. A click is defined as a press followed by a release, both inside the MouseArea (pressing, moving outside the MouseArea, and then moving back inside and releasing is also considered a click).16:54
faenil"16:54
mpt(I’m off until Thursday, but I’ll check scrollback for other ideas to name the style ^^^^ when I’m back)16:55
timpfaenil: check again, I pushed an update.16:57
faeniltimp: can you just add "and then released outside the icon, BUT INSIDE THE SAME MOUSEAREA"16:59
faenilbecause if he just released outside the icon clicked() wouldn't be fired16:59
faenilit has to be inside the same area17:00
faeniltimp: also, I'm not 100% sure about the change with originX -> 0.017:00
faenilare you sure contentX == 0 is the beginning of the content even when originX != 0?17:00
timpfaenil: I updated the comment17:01
timpfaenil: I am sure that I can click the left icon to get in a state where it scrolls too far when I use originX, and when I change that to 0 it all works as expected17:02
timpfaenil: so I think when you are scrolled to the right, and select a section with a long name, the estimation of originX goes wrong17:02
timpand it gets corrected while scrolling to the left, but after the animation.to was set17:02
dpmpopey, would you mind reviewing https://code.launchpad.net/~dpm/ubuntu-calculator-app/fix-deb-build-bug-1551848/+merge/287675 ? Trying to get the core app .deb builds (and snap builds :) in shape17:02
faeniltimp: yes, but that's not because it goes wrong, it's because the algorithm is approximte17:03
dpmor any other calculator deb who is around? ^17:03
faenillistview doesn't know how much content there is out of view17:03
* popey looks17:03
timpfaenil: right. So then originX gets a wrong estimation17:03
faeniltimp: I fear that using 0.0 only fixes it for the case that you tested17:03
timpor, if you prefer, an inaccurate estimation17:03
timpfaenil: when would it not be 0.0? originX could change when adding items on the left while being scrolled to the right, but when the sections model changes, we automatically select the first section17:04
faeniltimp: please test it when you have many sections and originX is != 017:04
faenilthen set contentX = 0 without animation17:04
faeniltimp: no, originX changes even without model changes17:05
timpI don't think so, only the estimation of originX changes17:05
timpbut when you scroll all the way to the left, the estimation becomes 0 again17:05
faeniltimp: sure, because it's fixed as you slowly scroll17:07
faenilbut try doing contentX=0 without animation, when you have originX != 017:07
popeydpm: approved17:07
timpfaenil: tried, and it seems to work fine with 017:09
faeniltimp: when originX != 0?17:09
timpfaenil: this is interesting, when setting contentX without an animation, it works fine with both setting it to 0 or originX17:12
timpeven when originX != 017:12
timpbut still originX becomes 0 after you set it17:12
faenilit's fine tha originX becomes 0, told you that it changes17:13
faenilbut does console.log(contentX) actually print different values17:14
faenil?17:14
faenilafter you set it17:14
timpfaenil: I set contentX to -145, and it becomes 0....17:15
timpsomehow it gets fixed, but when using an animation, the animation overrides that17:15
faeniltimp: sure, ok that's expected, that's ListView fixing up things17:16
timpbut not when we have the animation17:16
faenilno, because we don't let it17:16
faeniloriginX probably changes while the animation is still in progress17:16
timpthat's why I had the clamp with: 0.0, // estimation of originX is some times wrong when scrolling towards the beginning17:16
faenilso at the end of the animation there's nothing that fixes our contentX value17:16
timpfaenil: at the end of the animation is too late. If it would happen there, you show the overshoot animation, and then it jumps to the correct position.17:21
timpI think we should simply clamp with 0.017:21
timpit seems like the ListView does the same when you set its contentX directly17:21
faeniltimp: ListView has fixupX/Y methods that it invokes to fix things17:22
faenilwe don't have access to that17:22
faenilbut if you're sure the solution is 0.0, go with that17:22
faenilfrom what I remember from my investigation months ago17:22
faenil0.0 is wrong17:22
faenilbut I don't have a proof now17:22
faenilso I will leave it to you, since it's your task :)17:22
timpfaenil: your branch included code to position the selected section in the middle. Maybe that is where originX was important17:27
timpfaenil: but the requirements changed and the positioning in the middle is no longer wanted17:28
faenilmaybe, who knows, it was too long ago :)17:29
timpyeah the code with originX came from ensureItemIsInTheMiddle() (which does not exist any more)17:29
faenilit could have been just a bug that was discovered thanks to that feature17:31
faenilI don't know :/17:31
faenilanyway, your call ;)17:31
timpfaenil: I'll leave it at 017:31
timpfaenil: the unit test for the bug itself is not too hard to do17:32
timpfaenil: I will add the test tomorrow17:32
faenilok17:32
faenilcool17:32
faenilthanks!17:32
=== dpm is now known as dpm-afk
=== dpm-afk is now known as dpm
=== _salem is now known as salem_
=== salem_ is now known as _salem
nik90zsombi_, regarding your post in g+, how do you suggest we proceed?21:43
nik90I mean system-theming was not thought about at all. Up until now, the only thing supported is using Ambiance or SuruDark and then inheriting it to create custom app themes.21:44
=== ljp is now known as lpotter
balloonspopey, after much mangling, I got bzr installed in the chroots. Notice there's version numbers now on builds :-)23:30
balloonsThere's a job for it too: https://core-apps-jenkins.ubuntu.com/view/Maintenance Jobs/job/fix-bzr-chroot/23:30
popey\o/23:31

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!