/srv/irclogs.ubuntu.com/2014/10/13/#ubuntu-app-devel.txt

=== chriadam is now known as chriadam|away
=== mpt_ is now known as mpt
DanChapmanGood Morning all o/08:01
mihirDanChapman: morning :)08:05
rpadovaniHey all! In a UbuntuListView, in the PullToRefresh component, how can I disable the ActivityIndicator? I want to see only the text (Pull to refresh)08:05
rpadovanizsombi, ^^08:05
zsombirpadovani: I'm affraid you cannot08:10
zsombirpadovani: why would you need that?08:11
rpadovanizsombi, because I already have a different activy indicator: I implemented a bouncing bar like in scopes when the function I call to refresh is running08:12
rpadovani*activity08:12
zsombirpadovani: well, this behaviour of PullToRefresh is the default. the ActivityIndicator is the default, and will thus be used as is. If you want a different one, then you create a theme, and then do the style for the ActivityIndicator, then you will have consistency there.08:15
zsombirpadovani: beside, the indicator is shown for a pretty short time, so if your model is fast enough, teh indicator shouldn't be for too long there :)08:15
rpadovanizsombi, that is how it works now in reminders, but dpm asked to use default components :-)08:15
zsombirpadovani: well, then PullToRefresh works as dpm requested, uses default components08:16
rpadovanizsombi, sorry, I mean that now we have a custom implementation of PullToRefresh and our activityindicator, but dpm asked to switch to default pulltorefresh08:17
rpadovanidpm, this is a ping, when you have time please :-)08:17
zsombirpadovani: so then you have to switch your activity indicator as well to default :)08:18
rpadovanizsombi, this is a good idea, indeed :D08:18
zsombirpadovani: the only way to get your indicator to be shown in PullToRefresh is the theme.08:18
rpadovanimzanetti, ^^08:19
rpadovanizsombi, ok, thanks :-)08:19
zsombirpadovani: unless we expose a property to configure the animation there... but that takes time08:19
mzanettirpadovani: dunno... not sure if its worth to go through the theming hazzle08:27
mzanettirpadovani: but yeah, our pulldown component needs some love :)08:27
mzanettiit triggers too easily08:28
rpadovanimzanetti, no, definitely not. My question is, do we switch both pulldown and activityIndicator to default one? I love our activiy indicator :D08:28
mzanettiyeah, me too08:28
mzanettithere was a reason after all not to use the default one08:29
rpadovanimzanetti, ok, then maybe I can try to improve our pulldown component looking to the sdk one08:37
rpadovaniI'll talk also with dpm to hear what he thinks08:37
mzanettiyep08:37
mzanettizsombi: what does the activityindicator in the pulldown actually wait for?08:38
zsombizbenjamin: waits for the refresh to be completed, rt()m08:39
zsombimzanetti: ^ that was 4 U , sorry zbenjamin :)08:39
zbenjaminzsombi: np :)08:39
zsombimzanetti: in order to get the animation vanish, you need to inform teh component about completion08:39
vitimitiHi08:40
rpadovanimzanetti, in our case refreshing: notes.loading08:41
mzanettirpadovani: did you try to keep "refreshing" property to false all the time?08:41
mzanettirpadovani: well, you don't have to wire it up I guess, no?08:42
rpadovanimzanetti, let my try08:42
rpadovanimzanetti, doesn't work, when you pull down it is set to true, so it will be visible forever08:43
mzanettirpadovani: try this: Binding { target: pullToRefresh; property: "refreshing"; value: false}08:44
rpadovanimzanetti, nope08:46
mzanettiok then... I guess we should report a bug to the pulldown thing then...08:47
rpadovanimzanetti, do you want I push in a ~reminders-app branch so you can do some tries?08:47
mzanettithe fact that it sets the property to true itself has nasty side effects in other ways too... will break bindings08:48
mzanettizsombi: ^08:48
mzanettiwould you agree?08:48
zsombimzanetti: the property is set to true with a binding afaik08:49
mzanettizsombi: but then you need to set it to false using java script08:49
zsombimzanetti: well, if you do it like in the documentation, it won't require JS08:50
zsombimzanetti: rpadovani: like refreshing: rssFeed.status === XmlListModel.Loading08:50
mzanettizsombi: but how come it sets refreshing to true even if you do: refreshing: false then? (at least according to rpadovani)08:51
zsombimzanetti: well, dunno that tbh...08:52
zsombimzanetti: the sample we have in UITK gallery drives the refreshing, and works like charm...08:52
JamesTaitGood morning all; happy Monday, and happy Yorkshire Pudding Day! :-D08:53
zsombimzanetti: rpadovani: I've dbl checked: the refreshing property is not altered by the PullToRefresh component...08:54
rpadovanimzanetti, zsombi wait, I did a mistake: I thought that the animation was managed by refreshing property, but instead refresh() signal waits refreshing to be set to false08:55
rpadovanizsombi, indeed08:55
mzanettiaha :)08:55
zsombirpadovani: happens ;)08:56
rpadovanimzanetti, zsombi so I can minimize the animation doing onRefresh: {refreshing=true;refreshing=false}08:57
zsombirpadovani: well, you can, but why would you? I mean if the model refresh takes time, it would be wise to show sthing while teh new data arrives, right?08:57
rpadovanizsombi, because we want our activity indicator and default pulldown because works better than our one. It's a very low priority task, so don't wast time on this :-)08:59
mzanettizsombi: the thing is that the refresh can take a long time in our case. but while its refreshing you can still use the list08:59
mzanettizsombi: that's why we decided to go with a activitybar like the browser or the dash08:59
nik90dpm: hey, can you take a look at https://bugs.launchpad.net/ubuntu-clock-app/+bug/1380248 and suggest some solutions to it? If it really requires UI String change, I can get them approved by the designer then.08:59
ubot5Ubuntu bug 1380248 in Ubuntu Clock App "Alarm Settings: "%1m" can't be translatable in the right way" [High,Confirmed]08:59
zsombimzanetti: well, PullToRefresh does not forbid you to use the list... if the list has data, you can still scroll it...09:00
mzanettirpadovani: but I still don't understand... why do you even set refreshing to true?09:00
mzanettirpadovani: can't you just leave it to false?09:00
rpadovanimzanetti, no, because as I understood (maybe I'm wrong) refresh() waits refreshing changes to false, if is already false it doesn't see it09:01
rpadovaniI'm sure refreshing: false doesn't work09:01
mzanettidoesn't make any sense to me.. push your code please09:02
rpadovanimzanetti, lp:~rpadovani/reminders-app/PullToRefresh I modified only NotesPage.qml, hope I'm not doing some embarassing error :/09:05
mzanettilets see :)09:06
rpadovanibrb09:10
mzanettirpadovani: yeah, please file a bug. the activityindicator becomes visible even if refreshing is still set to false09:15
rpadovanimzanetti, I'm happy I didn't unlearn to code :D Bug #138054109:30
ubot5bug 1380541 in Ubuntu UI Toolkit "[PullToRefresh] the ActivityIndicator becomes visible even if refreshing is set to false" [Undecided,New] https://launchpad.net/bugs/138054109:30
tvossOrphis, ping09:30
Orphistvoss: Pong09:30
mihirpopey: can you confirm this bug on Calnedar, create an event with personal calendar, edit event and then try to change calendar to like your google calendar, it won't let you change the calendar.09:32
mihirpopey: https://bugs.launchpad.net/ubuntu-calendar-app/+bug/138053909:36
ubot5Ubuntu bug 1380539 in Ubuntu Calendar App "Changing an event's calendar fails without user visible error" [High,Confirmed]09:36
popeymihir: will do09:38
mihirthough i have checked , but want double check :)09:38
rpadovanimihir, popey confirmed09:39
mihirrpadovani: thanks :)09:39
popeythat was easy09:39
popeythanks rpadovani09:39
zsombinik90: did you have bugs for alarm model updates for teh toolkit? I cannot find those...09:48
nik90zsombi: Regarding the model refresh slot?09:49
zsombinik90: no, the one you needed(?) when you add a new alarm, which refreshes teh whoel alarm list09:50
nik90zsombi: I think that marked as fix released when you fixed the whole alarm list from being refreshed after updating an alarm. but let me try to find it.09:51
zsombinik90: how about when one is removed?09:51
zsombinik90: I think we had some need for those as well, right?09:51
nik90zsombi: I don't think that was removed...tbh I haven't checked that case09:52
nik90s/removed/reported09:52
zsombinik90: not removed, but when an alarm is removed, that refreshes teh whole model, right?09:52
zsombiok, we agreed you will report one :)09:52
zsombinik90: so pls, remort all alarm bugs so I can work on those...09:53
zsombinik90: or at least justify why the work on alarms is proceeding...09:53
nik90zsombi: I am a bit slightly confused :)...so are we talking about the use case that we discussed few days back?09:53
nik90or th eonle really really long time ago?09:53
zsombinik90: few weeks back09:53
zsombinik90: when we fixed the alarm update09:53
nik90ok I recollect now09:53
zsombinik90: there you realized that removing an alarm also refreshes all teh alarms09:53
nik90let me find the bug, 1 sec09:53
nik90zsombi: https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/135911209:58
ubot5Ubuntu bug 1359112 in Ubuntu UI Toolkit "Alarm model is updated after every change causing all the listview items to be repainted" [High,Fix released]09:58
nik90zsombi: I haven't mentioned the delete alarm case although I can reproduce it09:59
zsombinik90: perhaps then I did.... never the less, it is a valid one09:59
nik90zsombi: give me a sec to report a new bug10:00
zsombinik90: and if you have that reset() request as well, push that too10:00
nik90zsombi: yup doing it atm10:00
nik90zsombi: bug 138055310:04
ubot5bug 1380553 in Ubuntu UI Toolkit "Alarm Model is refreshed after creating/deleting an alarm" [Undecided,New] https://launchpad.net/bugs/138055310:04
justCarakashelp, I'm starting to type json when I wanne type jason10:07
justCarakasis there a cure ? :p10:07
zsombinik90: the bug you correlated it to is tagged... shouldn't this one be as well?10:14
nik90zsombi: I thought its you who tags bugs as rtm priority or not :)10:15
nik90well your team10:15
zsombinik90: not really... none of us should10:15
zsombinik90: at least not with that tag...10:16
nik90zsombi: next bug 138055910:23
ubot5bug 1380559 in Ubuntu UI Toolkit "[API Request] Alarms API should expose a slot Update() to allow app devs to manually refresh the model" [Undecided,New] https://launchpad.net/bugs/138055910:24
zsombinik90: I guess this is pretty critical, right?10:25
nik90yes10:26
zsombidoes it affect any rtm functionality 4 u?10:26
nik90zsombi: yes since when a repeating alarm is triggered, the clock app bottom edge reads "No Active Alarms" since the alarm date has passed.10:27
zsombinik90: ok, dpm U there?10:28
zsombinik90: eventually you could tag it as well...10:28
nik90zsombi: should I tag both of those bugs now ?10:29
zsombinik90: yes10:29
dpmzsombi, I will be in about 30 mins. Feel free to ping and I'll try to answer any questions10:31
dpmnik90, would you mind pinging me again with the link of what you wanted me to look at earlier on today?10:31
nik90dpm: sure, https://bugs.launchpad.net/ubuntu-clock-app/+bug/138024810:32
ubot5Ubuntu bug 1380248 in Ubuntu Clock App "Alarm Settings: "%1m" can't be translatable in the right way" [High,Confirmed]10:32
snakeleg\\nick10:32
snakeleg\quit10:32
zsombidpm: so, we have two more alarm bugs which are tagged11:07
zsombi13:27 nik90: zsombi: yes since when a repeating alarm is triggered, the clock app bottom edge reads "No Active Alarms" since the alarm date has passed.11:10
zsombinik90: maybe you should add this to teh bug11:10
nik90zsombi: sure11:30
zsombinik90: I've already added11:30
nik90zsombi: ah thnx11:31
zsombinik90: https://code.launchpad.net/~zsombi/ubuntu-ui-toolkit/alarm-data-adaptation/+merge/23761112:07
zsombinik90: you can test it on your desktop12:07
zsombinik90: however remember that you need the qtorganizer5-eds change from renato!12:07
nik90zsombi: just got home, sure will test it out12:36
nik90zsombi: I don't think renato's patch has landed yet..so it wouldn't be in utopic desktop yet. And his MP's doesn't output amd64 packages. So I will have to wait for jenkins to build armhf packages for your MP and then test on the phone12:38
zsombinik90: thn you can test with memory backend. What I did was that I branched renato's MR, and make install-ed it12:39
zsombinik90: I saw the MR not passing yet, but this is a way to brute force the qtorganizer-eds to be testable12:40
nik90ok12:41
=== davidcalle_ is now known as davidcalle
rpadovanirenatu, hi :-) Do you have 5 minutes? I have a question about multipleselectionlistview :-)12:50
renaturpadovani, yes12:50
rpadovanirenatu, thanks! So, I implemented the multiple selection in browser, works all very well but delete of multiple things. It works for 1 element, but if I select n+1 arguments, it deletes only n elements12:51
rpadovanirenatu, this is the code for the delete, I used dialer-app as base12:51
rpadovanihttps://bazaar.launchpad.net/~rpadovani/webbrowser-app/1351167/view/head:/src/app/webbrowser/HistoryView.qml#L14212:51
renatulet me see12:52
renaturpadovani, could you try replace "historyView.historyDomainRemoved(domain)" by "console.debug(domanin) to check if it is working correct12:54
renatuI believe the problem is that you are removing the items while interacting over it12:54
renatuyou should store the domanins in a extra list12:54
rpadovanirenatu, items.count is right (like 2) but it prints only 1 domain12:55
renatuok12:55
rpadovanirenatu, I can try to it, thanks12:55
=== _salem is now known as salem_
=== rmescandon is now known as rmescandon-lunch
rpadovanirenatu, aha! Saving domains list and removing from there worked well, thanks :-)13:09
rpadovanioSoMoN, ^^13:09
oSoMoNexcellent!13:10
renaturpadovani, yes as I suspected you are removing from the list while interacting over it13:10
rpadovanioSoMoN, I did the MR, I'll start to work on other things in history :-)13:16
zsombirenatu: your qtorganizer branch fails on CI13:24
dpmmzanetti, o/ quick question: what do you think of https://code.launchpad.net/~rpadovani/reminders-app/multipleAccounts/+merge/237682 - do you see an easy way to use an OptionSelector instead of a ListView?13:24
mzanettidpm: but we're opening a new page13:26
mzanettidpm: would be odd to squeeze accounts into an optionselector while keeping the rest of the page empty13:26
mzanettiimo listview is better suited13:26
mzanettiother then that, if you want the optionselect, I don't see where the problem is13:27
renatuzsombi, we are aware of that, there is a intermittent test caused by EDS start and stop process during the tests13:28
renatuzsombi, but it is a unit test then if the silo build it ok, we are good to go13:29
rpadovanimzanetti, that I cannot add to an optionselector a new delegate as footer13:29
dpmmzanetti, but it's not a matter of space, is it? I.e. the optionselector can also be left expanded. The thing with listitem is that it does not show you clearly which account you've got currently selected. As per the OptionSelector issue, rpadovani can expand, but he was mentioning that he wanted to add a new delegate for the unknown account type, which seems not to be possible with optionselector13:29
rpadovanimzanetti, about the bug we talked yesterday, the user on g+ replied: http://pastebin.com/KdazQwnq13:29
dpmrpadovani, ah actually, why do you need a different delegate?13:30
mzanettirpadovani: why would you want a footer13:30
mzanettiI think the current button in the footer is quite horrible anyways13:30
mzanettishould be a tick in the toolbar13:30
rpadovanidpm, because the unknown account has to execute setup.exec, but others delegate needs accountname.login()13:31
rpadovanimzanetti, because dpm wants in the list a delegate with "Unknown delegate - tap to authorize" that on click launches oa13:32
dpmrpadovani, ah, gotcha. And the call cannot be set dynamically?13:32
rpadovanidpm, mhhh, maybe yes, I can set a flag in the delegate that for default is false, but then add the unknown delegate with this flag set to true. But could I add something only to optionselector also if the model is set by c++ backend?13:33
* mzanetti can't follow the discussion13:34
dpmrpadovani, I'm not sure I understand the part about the model being set by the backend13:34
rpadovanidpm, if model: accounts, and I cannot modify accounts, can I add something to the model?13:35
rpadovanimzanetti, maybe I'm overcomplicating something very easy, but we have a list of accounts in an option selector, and all they delegates are equals, then I need a different delegate. How can I add the different delegate to the optionselector? In listview I use footer property13:37
mzanettifor example:13:38
mzanettiComponent { id: a Foo {} }13:38
mzanettiComponent { id: b Bar{} }13:38
mzanettidoelegate: ifSomething ? a : b13:38
mzanettielse13:38
mzanettidelegate: Loader { source: ifSomething ? a  : b }13:39
mzanettior, if the delegate still look mostly the same13:39
mzanettijust keep one delegate and change some properties inside13:39
rpadovanimzanetti, mhh, not sure I understood. We want to do something like this: https://i.imgur.com/ujy3RQ7.jpg you have n accounts in the model accounts, then ifFlag add also the "Unknown account ..."13:41
mzanettiI like how "dpm" is pixelated in the screenshot and then written in the sketch13:42
rpadovanilol13:42
=== rmescandon-lunch is now known as rmescandon
mzanettirpadovani: well, I'm sorry, I still don't see where the problem is tbh13:43
mzanettiisn't this just like this?13:43
mzanettidelegate: Label { text: model.authenticated ? model.name : "UNKNOWN - Do stuff by clicking" }13:44
rpadovanimzanetti, the uknown isn't in the model13:45
rpadovani*unknown - there is no way I spell it right13:45
oSoMoNrpadovani, excellent, thanks13:47
mzanettirpadovani: so the problem is still that you can't know if an account is authenticated or now?13:49
mzanettierr, authorized13:49
rpadovanimzanetti, no, the problem is I have a model with all authorized accounts, then I have a flag that says if there is at least one unauthorized account. If this flag is true, I want to add another voice at the end of the listview13:50
dpmmzanetti, well, it's not actually dpm in the screenshot ;)13:50
rpadovanimzanetti, at the end of the optionSelector13:50
rpadovanibecause in the listview I use footer and it's easy13:50
mzanettirpadovani: but that doesn't match with dpm's sketch, does it?13:51
rpadovanimzanetti, this is the dpm's sketch, he has one authorized account and at least one unauthorized. So he has a model with one account13:52
rpadovaniand the unAuthorizedFlag set to true13:52
mzanettiso if you have 3 unauthenticated accounts, would there still only be one UNKNOWN shown in reminders?13:53
dpmrpadovani, would that make it easier to implement? http://i.imgur.com/zT8A3lo.jpg13:53
rpadovanimzanetti, yes13:53
rpadovanidpm, you have a working implementation right now, there is only that height set on component on completed that is a bit strange. Anyway, yes, this is easy to implement, I think. It's similar to the first one I implemented13:56
dpmrpadovani, cool, my point is to separate authorized accounts from those which require authorization. Question: does it make sense to have a list of unauthorized accounts, though? I.e. if I've got 2, is it worth having an entry for each one of them? Can they be authorized individually?13:59
rpadovanidpm, I'm not sure and I cannot verify right now, I have to see what AccountService gives to us14:00
dpmpopey, all set?14:01
dpmon my way to the hangout14:01
popeyam there ☻14:02
akiva-thinkpadah14:02
akiva-thinkpadhangout?14:02
popeyteam one.14:03
akiva-thinkpadso not on-air?14:03
popeyno14:03
rpadovanimzanetti, anyway, I don't find any simple way to create n+1 delegates in an option selector if model has n delegates14:03
akiva-thinkpad;_;  I have to wait 1 whole day to ask more questions?14:03
mzanettirpadovani: I thought you want n delegates only14:04
mzanettirpadovani: like if there's 5 unauthenthicated accounts you'd show 5 of them14:05
rpadovanimzanetti, ok, you know, I'm not very good to explain what I want. Anyway, did you read my message about the bug user reported on G+?14:05
rpadovanimzanetti, I think has been lost in the conversation. He replied with that paste: http://pastebin.com/KdazQwnq14:06
mzanettirpadovani: dpm: why don't we show the actual number of accounts?14:06
mzanettiif you press the "UNKNOWN" one, which would be selected then?14:06
mzanettirpadovani: yeah, seen that... sadly not totally helpful the log14:07
rpadovanimzanetti,  gmail webapp shows a windows, I think it's created by OA, with a list of your unauthorized accounts for that service14:08
rpadovanimzanetti, I dunno if is the only way to implement that14:08
=== boiko__ is now known as boiko
=== artmello_ is now known as artmello
om26eroSoMoN, Hi!14:43
oSoMoNom26er, hey14:43
oSoMoNwhat’s up?14:44
akiva-thinkpadakiva-thinkpad, Hi!14:44
om26eroSoMoN, twitter webapps seems broken, is that related to the browser string change ?14:44
akiva-thinkpadakiva-thinkpad, hey14:44
om26erbroken as in old html version14:44
akiva-thinkpadwhats up?14:44
* akiva-thinkpad craws back to whenst he came14:44
oSoMoNom26er, there hasn’t been a UA string change recently14:46
oSoMoNom26er, and I’m not seeing that on flo, the version of the twitter UX I’m getting in the browser seems rather modern14:48
oSoMoNom26er, can you reliably reproduce? and if so, can you please file a bug?14:48
om26eroSoMoN, always happening for me. Let me share the screenshot with you14:48
om26eroSoMoN, http://imgur.com/tPPKGsj14:50
oSoMoNom26er, I can’t even log in to the twitter webapp, it consistently crashes while authenticating me14:55
om26eroSoMoN, i'll report the bug14:57
oSoMoNom26er, thanks14:57
om26eroSoMoN, something that have annoyed me for a while is this bug https://bugs.launchpad.net/webapps-core/+bug/137107514:57
ubot5Ubuntu bug 1371075 in The Webapps-core project "[Facebook] shows very small images" [Medium,New]14:57
om26erI had reported it for the wrong package it seems, its a problem of the browser14:57
oSoMoNom26er, it’s probably an umpteenth UA override bug14:58
oSoMoNfacebook making wrong assumptions about the kind of device it’s running on, and serving content in consequence14:58
akiva-thinkpadpopey, are you running the q&a tomorrow? Last time I noticed that there was not a ton of questions, and so I was thinking of making a reddit thread beforehand for people to ask.14:58
akiva-thinkpadand have people upvote the questions they think are good14:59
om26eroSoMoN, only the images that are uploaded by someone are small. Video thumbnails are shown the right size.14:59
mihirthis looks amazing ==> http://goo.gl/kR0Hyt15:08
akiva-thinkpadmihir, what is this from?15:10
popeyakiva-thinkpad: yes, I'm doing it tomorrow, dunno who with15:21
nerochiaroartmello: can you also look at https://code.launchpad.net/~phablet-team/gallery-app/popover-position/+merge/238181 when you have time ?15:28
nerochiaroartmello: and if you have bugs to pass to me please let me know, as I'm running out of high priority bugs15:28
PaoloRotoloHi all!15:32
PaoloRotoloI'm trying to run an HTML5 app on Ubuntu Touch. Everything works fine on Desktop (with Ubuntu SDK) but on mobile the app is stuck at loading screen.15:33
PaoloRotoloI think this is the bug: https://lists.launchpad.net/ubuntu-phone/msg10189.html15:33
PaoloRotoloAnd this is my console output: http://pastebin.com/mULaCtqs15:33
PaoloRotoloIs there any fix :)?15:34
dpmhi PaoloRotolo o/ - it seems there aren't any HTML experts around, perhaps you can ask dbarth or alex-abreu on#ubuntu-webapps15:47
dpmPaoloRotolo, oh, daker is on this channel too, and he can perhaps help you ^15:48
nik90mzanetti: ping15:49
dpmakiva-thinkpad, you're my favourite person of the day! https://bugs.launchpad.net/ubuntu-filemanager-app/+bug/138057515:49
ubot5Ubuntu bug 1380575 in Ubuntu File Manager App "File manager should use back in toolbar" [Undecided,Confirmed]15:49
PaoloRotolodpm: great, thanks :) BTW, It seems that all HTML5 apps are not working in latest uTouch build15:50
dpmPaoloRotolo, oh, really? that's a major bug, then. Do you have an example of an app or apps that is/are not working?15:51
popeyPaoloRotolo: wfm15:53
popeymy calculator app works...15:53
popeyhmm, seems my nexus 4 isn't fully up to date...15:54
popeyPaoloRotolo: which image you on?15:55
PaoloRotolopopey: Ubuntu 14.10 r24315:57
PaoloRotoloon Nexus 7 201315:57
PaoloRotoloLast updated 10/10/1415:57
popeyhm. I am just updating to #279 here15:57
popeyon the devel-proposed channel15:58
=== gatox is now known as gatox_lunch
mzanettinik90: hey16:08
mzanettiwhat up?16:09
nik90mzanetti: Hi :) I got 2 question about qml test pratices , I will be quick16:09
PaoloRotolopopey: nice, let me know :)16:09
nik90mzanetti: first, is there a way to use compare() or tryCompare() to check if a value is greater than some value?16:09
nik90mzanetti: or perhaps I am approaching it incorrectly16:10
mzanettinik90: for compare, you can do compare(foo > bar, true)16:10
nik90like for instance, I need to check if the lisitem.count is greater than 016:10
nik90ah16:11
mzanettinik90: for tryCompare it's not that easy, in UnityTestCase (not sure about UbuntuTestCase) we have one called tryCompareFunction()16:11
nik90so compare(list.count>0, true, "message")16:11
mzanettiyou can use it like: tryCompareFunction(function() { return foo > bar;}, true)16:11
mzanettiyeah16:11
nik90mzanetti: ah ubuntu test case has it as well :D16:12
nik90I just checked the ubuntu sdk api docs :)16:12
nik90mzanetti: ok, so second question..I am creating a file with common test functions like pressing a header button etc as shown in http://paste.ubuntu.com/8553488/16:13
nik90mzanetti: am I doing it correctly?16:13
nik90I am already using it in my tests and has helped reduce code quite a bit. However I don't want to be using a wrong method here16:14
mzanettinik90: yeah, looks good. some of them even look like being worth being upstreamed into UbuntuTestCase16:14
nik90mzanetti: ooh cool. As I use them more and more, I am checking if they have defined in the most general way possible.16:15
nik90once they stabilise a bit, I will propose them upstream16:15
nik90mzanetti: thnx for answering the questions, I think I am set16:16
mzanettikk16:16
dpmpopey, does the music scope show your music in its front page? For me it's stopped doing that and only shows me results from 7digital16:29
popeydpm: yes, it shows my music16:31
ahayzen_dpm, trying pulling to refresh the scope :)16:31
dpmahayzen_, yeah, it shows my music for a split second after refresh, then it disappears16:32
ahayzen_dpm, does the music-app show the music?16:32
dpmahayzen_, yeah, it does, and also when I click on the scope's "my music" header. It will just refuse to show it on the front page16:33
ahayzen_dpm, strange16:33
dpmwe might have built some kind of scopes AI that refuses to show music if it doesn't accord to its tastes :)16:33
ahayzen_haha +116:34
ahayzen_although popey won't be able to listen to any music then :/16:34
* ahayzen_ hides his ABBA quickly16:34
dpmnothing is quick enough for... scopes! mwahaha16:35
=== gatox_lunch is now known as gatox
akiva-thinkpadahayzen_, or mihir ; got a qml question17:08
ahayzen_akiva-thinkpad, o/17:08
akiva-thinkpadahayzen_, :D17:08
akiva-thinkpadokay looking to have a flickable of labels in a row, but I want to constrain the view of said labels17:09
akiva-thinkpadbecause I don't want the labels which are out of the scope, to be sitting on top of other components.17:09
akiva-thinkpadi'll show you what I mean by this:17:09
=== karni is now known as karni-afk
akiva-thinkpadahayzen_, http://i.imgur.com/M1DG40J.png17:11
akiva-thinkpadso the highlighted part is the part  of the flickable I do not want viewable17:11
akiva-thinkpadCan I do this by placing the flickable inside a rectangle?17:11
ahayzen_akiva-thinkpad, so it is going outside of the specified width of the flickable? ... try clip: true ?17:11
akiva-thinkpadah clip17:11
akiva-thinkpadnever used that17:12
akiva-thinkpadsec17:12
ahayzen_akiva-thinkpad, http://qt-project.org/doc/qt-5/qml-qtquick-item.html#clip-prop17:12
akiva-thinkpadahayzen_, worked perfectly17:12
akiva-thinkpadthanks17:12
ahayzen_akiva-thinkpad, no problem17:12
akiva-thinkpadthat was... omg wonderful :)17:12
ahayzen_heh17:12
akiva-thinkpad!cookie | ahayzen_17:13
ubot5ahayzen_: Wow! You're such a great helper, you deserve a cookie!17:13
akiva-thinkpad*10017:13
* ahayzen_ eats cookies nom nom nom17:13
akiva-thinkpad:)17:13
=== karni-afk is now known as karni
mihir_akiva-thinkpad, ping17:19
mihir_akiva-thinkpad, i there are some trivial issues on your MR17:19
akiva-thinkpadmihir_, pong17:19
akiva-thinkpadmihir_, ah I'll go do that right now17:19
akiva-thinkpadthis is the calendar app right?17:20
akiva-thinkpadI'm in a good mood; making good progress with the file manager app17:21
mihir_akiva-thinkpad, http://i.imgur.com/M7lWwia.png17:21
mihir_akiva-thinkpad, great :)17:21
akiva-thinkpadmihir_, you want the dividers to be full length?17:22
akiva-thinkpador to have a margin?17:22
mihir_akiva-thinkpad, margin will do i guess , just take a call yourself.17:23
mihir_akiva-thinkpad, now also if you could get what i meant on From time :)17:23
akiva-thinkpadmihir_, it almost fits on your screen there. I am terribly tempted to take out the calendar label17:24
akiva-thinkpadno I don't see it17:24
akiva-thinkpad:S17:24
akiva-thinkpadohhhhhhhhhhhhhhhhh17:24
akiva-thinkpadoh17:24
akiva-thinkpadoh I'm such a doof17:24
akiva-thinkpad*Facepalm*17:24
mihir_akiva-thinkpad, also you need merge from trunk :)17:25
akiva-thinkpadyah will do17:25
vitimitiI am creating an app that requires creating a folder in the predefined datalocation (ie: ~/.local/share/appfolder for Ubuntu desktop) and downloading a database to it. Is it possible to do so as many times as it's required with just the network permissions or do I need to add other permissions to the .apparmor file?17:25
mihir_akiva-thinkpad, let it be as of now.17:25
mihir_akiva-thinkpad, we'll take call afterwards :)17:25
akiva-thinkpadheh17:26
mihir_nik90, you around ?17:30
nik90mihir_: sort of17:30
mihir_nik90, got few mins to review small MR https://code.launchpad.net/~mihirsoni/ubuntu-calendar-app/blankBubbleInWeekView/+merge/23706917:31
mihir_i am planning to push store updates , if we can get this done would be great :)17:31
mihir_nik90, only if you get some time :)17:32
nik90mihir_: I will do it by end of tonight, would that be okay? I am kinda in the middle of some work17:32
mihir_nik90, no issues :) take your time.17:32
mihir_nik90, thanks.17:33
mihir_renatu, is that EDS change will be available in latest image?17:33
renatumihir, not yet, bzoltan is working on that17:33
mihir_renatu, okay  thanks for the update.17:34
akiva-thinkpadOh my gosh person in the coffee shop, turn off your annoying phone's game music.17:36
akiva-thinkpadmihir_, I really like what you did with Repeats and Reminder; I am curious whether we can do something similar with Location, where we make it a subtitled list item rather than a manual entry17:42
mihir_akiva-thinkpad, that was basically nik90 idea :)17:43
akiva-thinkpadnik90, oh! taking credit for my idea >:[[[[[[[[[[[[[[[[[[[[[[17:43
akiva-thinkpadjk17:43
mihir_akiva-thinkpad, i meant the idea of what we have done with repeat and reminders :)17:43
akiva-thinkpadah17:44
mihir_not the one with Location.17:44
mihir_akiva-thinkpad, hmm location is just to enter text , and moving screen for that too would be annoying for user.17:44
akiva-thinkpadmihir_, I was thinking of moving the screen to two growing quick lists17:45
akiva-thinkpad1 quick list would be from your contacts17:45
akiva-thinkpadthe other would be from previously entered locations17:45
akiva-thinkpadand perhaps a third option would be to pin point a location on a map17:45
akiva-thinkpadwriting "vancouver 124 main street, v7r 3x3 apt suite 50" manually seems way too... inefficient.17:46
PaoloRotolopopey: any news? :)17:46
akiva-thinkpadi'll leave it as is for now17:46
* akiva-thinkpad is working on the filemanager app, and I want to get that done today17:46
mihir_akiva-thinkpad, yeah17:48
mihir_lets get this merged :)17:48
akiva-thinkpad:)17:48
akiva-thinkpadwell that is slightly confusing... why are the margins different for the desktop and the emulator...?18:04
mihirakiva-thinkpad: use units.gu18:08
akiva-thinkpadmihir, I am18:08
akiva-thinkpadthats why its so confusing...18:08
mihirakiva-thinkpad: then it shoudl take care based on device.18:08
mihirakiva-thinkpad: it shouldn't required more than 0.5 and maximum would be 118:09
nerochiaroartmello: anything i can take care of from you tomorrow ?18:12
artmellonerochiaro: I will finish the review of those MR today18:12
nerochiaroartmello: thanks. any bugs in your list you want to pass to me ?18:13
akiva-thinkpadmihir http://i.imgur.com/nWpMmax.png that is inconsistent; i'm at a loss as to how to deal with this.18:13
artmellonerochiaro: tomorrow I will take a look on the buglist for gallery, so far all the ones I was working on are handled18:13
mihir_akiva-thinkpad, you gave 0.5 or 1?18:13
mihir_akiva-thinkpad, also let it be the calendar it is i guess.18:14
nerochiaroif you could do that today it would help, so i can start working on them on the morning18:14
nerochiaroartmello: ^18:14
artmellonerochiaro: sure, I drop you an email eod18:14
nerochiaroartmello: excellent. thanks and have a good rest of the day. eod'ing too18:14
artmellonerochiaro: thx18:15
nik90akiva-thinkpad: in that screenshot the one on the left is better18:24
nik90akiva-thinkpad: what's the issue18:24
=== rpadovani is now known as rpadovani|Dota
mihir_akiva-thinkpad, are you done with the changes ?19:16
mihir_akiva-thinkpad, sorry i am after you , lol19:16
mihir_popey, only thing worried me on calendar is , it still takes time to open a new event page :|19:53
=== randomcpp is now known as gcollura
nik90mihir_: use the qtc profiler tool to figure out where it is taking time to load stuff20:20
nik90mihir_: I just reduced the world city page loading time by loading models dynamically by analysing it in qtc profiler tool20:20
mihir_nik90, we need to get this externally or it is there inside QTC ?20:21
nik90it is inside qtc20:21
nik90analyse tab20:21
=== salem_ is now known as _salem
mihir_nik90, yeah got it.20:21
mihir_thanks i'll do that.20:21
akiva-thinkpadmihir, http://i.imgur.com/bvbyW7C.png20:22
akiva-thinkpadexact same list header specifications, yet the operate differently in the emulator20:23
mihir_akiva-thinkpad, but  i guess you changed position of calendar right ?20:24
mihir_nik90, is there any way to enable it ? i see Record button is on in Analyser20:25
nik90mihir_: http://developer.ubuntu.com/apps/platform/guides/lets-talk-about-performance/20:25
nik90you press the green button near the record button20:26
mihir_nik90, got it , my eyes couldn't recognize that small green play button :P20:28
nik90:p20:28
* nik90 returns to writing more qml tests20:29
=== A7med is now known as Neo31
nik90elopio: Hey I added one more qml test MP to your review todo :-)21:12
sergiusensnik90: hey, wondering how your testplan as plainbox provider thing turned out21:19
nik90sergiusens: hey, at the moment we have the plainbox clock app provider which I run before every push to the store.21:20
akiva-thinkpadAre we getting rid of the Loco?21:20
nik90sergiusens: although still from the terminal21:20
elopionik90: cool, can I get the lin, please?21:20
akiva-thinkpadI just received an email from the vancouver loco saying that loco is being dropped from the name21:20
sergiusensnik90: were does the provider live?21:20
akiva-thinkpadbecause it is derogatory in spanish21:20
sergiusensnik90: I want to get rid of the testplan in a wiki thing :-)21:21
nik90elopio: https://code.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/utopic-3.0/+activereviews (2 MPs named qml-tests)21:21
nik90sergiusens: at the moment the provider lives in the source tree of the clock app21:21
sergiusensakiva-thinkpad: we consider it friendly in Argentina :-)21:21
nik90sergiusens: so whoever is testing will need to install it and then run the manual test suite21:21
nik90sergiusens: however zyga is working on allowing app devs create a click package which has checkbox-touch + app tests which can then be run on the phone easily...essentially a nice gui21:22
nik90I believe it is a WIP at the moment. I can check with him tomorrow to see close it is to completion21:22
=== marcoceppi_ is now known as marcoceppi
sergiusensnik90: I prefer off phone anyways21:24
sergiusensso not an issue21:25
nik90:)21:25
akiva-thinkpadsergiusens, oh neat; :P21:37
akiva-thinkpadwhere can I find a list of the icon names22:16

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