/srv/irclogs.ubuntu.com/2014/08/17/#ubuntu-app-devel.txt

ikthi01:40
ikthello?02:24
=== chihchun is now known as chihchun_afk
Akiva-ThinkpadWhy does the Ubuntu SDK tell me, “do not use comma expression”, and what should I use instead?08:24
DanChapmanGood Morning all o/09:43
rpadovaniDoes anyone use bottomEdge with a pagestack? I'm trying to push on top of a pagestack a page with bottom edge, it works but there is a strange transition when the page is pushed09:50
nikwenHas anyone got the Qt.labs.settings to work in an Ubuntu app yet and can point me to a working example (which is not the API doc)?10:10
nikwenI'm stuck at getting it to work.10:11
nikwenOk, this posts seems to exactly describe my problems: https://lists.launchpad.net/ubuntu-phone/msg09355.html10:29
nikwenWouldn't it make sense to point this out in the documentation?10:30
DanChapmanrpadovani, If i remember correctly the clock app and dialer app use a pagestack, but i think they don't push the page until the open animation is finished. I might be wrong though :-/10:35
DanChapmanrpadovani, ahh or do you mean push a page "With a bottom edge" ontop of another page?10:36
rpadovaniDanChapman, they don't have a bottomEdge in a page that as been pushed in the pagestack, they use bottomEdge only to push pages once10:36
rpadovaniDanChapman, yap10:36
rpadovaniDanChapman, but i solved making the bottomEdge invisible until all the page is loaded, thanks for your interesting!10:37
DanChapmanrpadovani, ahh right, i have no idea on that one. For dekko I opted to use the panel component instead so I haven't seen issues with that.10:37
DanChapmanrpadovani, cool :-)10:37
nik90DanChapman: Thnx, I removed the last duplicate status changed signal emission10:51
DanChapmannik90, :-) approved!10:54
nik90DanChapman: thnx. I will have to first merge the prerequisite branch before merging this one to trunk.10:55
DanChapmannik90, yw :-)11:03
nik90QML people, if you have time would mind reviewing the active branches in https://code.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/utopic-3.0/+activereviews11:23
ikthello :)11:52
rpadovanimzanetti, o/ I'm working on edit notebooks name but, mhh, doesn't work: I'm in the delegate, so to save the new title I use model.name = newName, but in notebook.cpp the setName function isn't called... what's wrong?12:32
mzanettirpadovani: no... noet model.name =13:04
mzanettirpadovani: model.get(index).name =13:05
mzanettirpadovani: the model is read-only. if you want to modify the data you need to get the notebook object13:05
mzanettiI guess we could implement setData() in the model too... but I didn't bother so far13:06
rpadovanimzanetti, TypeError: Property 'get' of object QQmlDMAbstractItemModelData(0x1c693d0) is not a function13:28
mzanettihuh13:29
mzanettilemme look up the code13:29
mzanettirpadovani: notebook()13:30
mzanettirpadovani: check out notebooks.h13:30
rpadovanimzanetti, mhh? Do you mean the roles?13:31
mzanettirpadovani: Q_INVOKABLE Notebook* notebook(int index)13:35
rpadovanimzanetti, so should be notebook(index).name ?13:36
mzanettiyes :)13:37
rpadovanimzanetti, ReferenceError: notebook is not defined, and I imported Evernote 0.113:38
mzanettiah... sorry13:40
mzanettiwell... the "Notebooks" class in c++ is the model in qml13:40
mzanettiso you'd do model.notebook(index).name13:40
mzanettior notebooks.notebook(index)... not sure how the model is called13:40
rpadovanimzanetti, TypeError: Property 'notebook' of object NotebooksDelegate_QMLTYPE_67(0x2728900) is not a function with model.notebook, and with notebooks.notebook I have no error but nothing happens13:42
mzanettipush the branch somewhere and let me see13:43
rpadovanimzanetti, https://code.launchpad.net/~rpadovani/reminders-app/editNotebooksName13:47
rpadovanimzanetti, the functions setName is called, but at the restart of the app the names disappear13:47
rpadovani* the new name there isn't13:48
mzanettirpadovani: hmmm... indeed the setName is not finished yet13:57
mzanettiit doesn't save the notebook to the server13:57
* mzanetti fires up an IDE13:58
rpadovanimzanetti, ok, if you want I'll try to take a look14:02
mzanettirpadovani: I'm afraid that might be too much for you at this time... requires creating a new job which requires some knowledge about threads etc14:03
mzanettirpadovani: I'm on it... shouldn't take too long14:03
rpadovanimzanetti, gotcha, thanks :-)14:03
mzanettirpadovani: https://code.launchpad.net/~mzanetti/reminders-app/save-notebook/+merge/23112314:21
mzanettirpadovani: just like with notes, you need to call save() now on the notebook in order to sync it to the server14:22
rpadovanimzanetti, line 57 of the diff14:29
rpadovaninotebook.name = m_notebook->guid().toStdString();14:29
rpadovanishould be m_notebook->name() I suppse14:29
mzanettiouch14:29
mzanettirpadovani: fixed14:29
mzanettirpadovani: also note, this only saves the name atm14:31
mzanettirpadovani: no support for publishing/sharing notebooks yet14:31
rpadovanimzanetti, works fine, thanks :-) Only other thing is copyright year, but we can change in future mr14:31
rpadovanimzanetti, got it, thanks14:31
mzanettialready updated that14:32
rpadovaniapprove and top approve then :-)14:33
zygahello14:37
rpadovanimzanetti, could be a good sentece "Reminders doesn't find any account to use. Please configure one in the system settings." when there is no account? Has to be used  both with no account or no authorization14:46
rpadovani*sentence14:46
mzanettirpadovani: you might want to ask popey about that... or some other native english speaker14:46
mzanettibut yeah, something along those lines14:47
rpadovanigood point, so, popey, are you there? :=)14:47
popeyrpadovani: hello16:44
rpadovanipopey, hey :-) So, for reminders app, we need a phrase that could be used in two situations: (a) When there is no account and (b) when there is an account, but we have no authorization to use it. In both case, there is a button to open system settings. We have no way to know in which case we are, so we need something that fit both16:47
popeyrpadovani: I'd just say "Please configure an Evernote account in System Settings".16:48
popeyand "Please authorise the Evernote account in System Settings"16:48
popeyor something like that16:48
rpadovanipopey, yap, but these are 2 sentences. We need one that fit both16:49
popey"Please configure and authorise an Evernote account in System Settings"16:49
rpadovaniBrilliant.16:52
popeyrpadovani: renatu found https://bugs.launchpad.net/ubuntu-calculator-app/+bug/1357983 ..17:26
ubot5Ubuntu bug 1357983 in Ubuntu Calculator App "Screen doesn't update for some calculations" [Undecided,New]17:26
rpadovanipopey, thanks, the bug is a bit different, I added a comment. I'll try to fix asap17:32
popeythanks rpadovani, I've marked it critical17:32
popeynik90: gonna shut down the box I was developing the geonames stuff on, assuming you aren't using it now we have it deployed17:42
nik90popey: +17:43
=== marlinc_ is now known as marlinc
ybonis there an event I can register to in order to know when the app is being quit?19:49
labsinybon, you mean not focused any more?20:35
ybonlabsin: no, I meant quit by user20:38
labsinybon, you can use Component.onDestruction20:39
labsinBut I think you don't have much processing time before it get SIGKILL'ed20:40
ybonok20:41
ybonI will try20:41
ybonMy need is to save map view20:41
ybonI don't want to issue a SQL request each time user move the map20:43
ybontoo bad that StateSaver only work when the app is abnormaly killed20:43
ybonworks*20:43
labsinI don't know about StateSaver20:46
ybonis there a way to have more debug when running the app on device from QtCreator? When it starts and encounter an error (like a missing id), it justs gives me "Received a failed event"20:50
labsinybon, It should (I think). Is the build type debug?20:51
labsinMost time I make such an error, it gives the line nr etc.20:51
labsinI don't know about the "on the device" part20:52
ybonlabsin: I mean when running the app on my phone from QtCreator20:53
ybonwhen I run it on the Desktop, I have more details20:53
labsinybon, that, I don't know20:54
ybonbut now my desktop is on 14.04 and I need 14.1020:54
ybonso can only run the app on the phone or an emulator ;)20:54
ybonI don't know about the build type20:55
ybonwhere can I set that?20:55
ybonoh ok20:56
ybonIf I click on the green arrow with the "bug"20:57
labsinybon, Yes, It that on release or debug?20:59

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