/srv/irclogs.ubuntu.com/2013/12/09/#ubuntu-app-devel.txt

=== chriadam|away is now known as chriadam
=== shuduo_afk is now known as shuduo
=== shuduo is now known as shuduo_afk
=== shuduo_afk is now known as shuduo
=== chriadam is now known as chriadam|away
dholbachgood morning08:08
=== dholbach_ is now known as dholbach
=== shuduo is now known as shuduo_afk
JamesTaitGood morning all; happy Anti-Corruption Day! :-D11:11
=== _salem is now known as salem_
=== MacSlow is now known as MacSlow|lunch
=== boiko_ is now known as boiko
boikohi guys, is there an API for using to save/restore the application state?12:24
=== Ursinha-afk is now known as Ursinha
saleniexHi all!12:51
saleniexDoes anyone know is there LTE supported in ModemManager using Dbus?12:52
=== JamesTait is now known as Guest4828
=== Pici` is now known as Pici
=== MacSlow|lunch is now known as MacSlow
=== gatox_ultra is now known as gatox
=== JamesTait is now known as Guest86827
=== greyback is now known as greyback|london
rickspencer3Kaleo, so, I am not supposed to use ValueSelector because it is deprecated?16:37
Kaleorickspencer3, correct16:39
rickspencer3Kaleo, what should I use instead?16:40
Kaleorickspencer3, there are two options16:40
rickspencer3(no pun intended)16:40
Kaleorickspencer3, :) I'm getting the links for you, hang on16:41
Kaleorickspencer3, http://developer.ubuntu.com/api/devel/ubuntu-13.10/qml/ui-toolkit/qml-components-components-listitems0-itemselector.html16:42
rickspencer3Kaleo, hmmm, what namespace is that in?16:43
Kaleorickspencer3, ListItems16:43
rickspencer3ListItem.ItemSelector?16:43
Kaleorickspencer3, yes16:43
Kaleorickspencer3, the doc has a bug16:43
Kaleorickspencer3, import Components.Components.ListItems 0.1 as ListItem16:43
Kaleorickspencer3, should be16:43
Kaleorickspencer3, import Ubuntu.Components.ListItems 0.1 as ListItem16:44
rickspencer3thanks Kaleo16:45
untitled1Hello there any time that I press the qt home button in qtcreator and then press develop it opens like 4 windows. Can I disable this or is it a bug ?16:46
t1mprickspencer3: the online doc for that component is not up-to-date. Better check file:///usr/share/ubuntu-ui-toolkit/doc/html/qml-ubuntu-components-listitems0-itemselector.html16:53
nerochiaroom26er: do you know why when I get a Tabs object in an AP test I can't access its currentTab property ? it's because the property is of type "Tab" (i.e. an object ?)16:54
rickspencer3thanks t1mp16:54
t1mpnerochiaro: it is currentPage or selectedTab16:55
t1mpnerochiaro: ^ yeah not very consistent16:55
nerochiarot1mp: selectedTab would be ok, but I can't access it in AP tests16:55
nerochiarot1mp: AP tells me the property doesn't exist16:55
t1mpnerochiaro: is it null, or the property is not defined?16:56
t1mpnerochiaro: it is defined like this in Tabs:16:56
t1mp    readonly property Tab selectedTab: (selectedTabIndex < 0) || (tabsModel.count <= selectedTabIndex) ?16:56
t1mp                                           null : tabsModel.get(selectedTabIndex).tab16:56
t1mpnerochiaro: how do you get it? MainView.get_tabs from the emulators?16:57
t1mpnerochiaro: are you sure the result is a proper Tabs component?16:57
nerochiarot1mp: no, MainView.select_many("Tabs").selectedTab17:00
nerochiarosorry, select_single17:00
nerochiarot1mp: the Tabs object I get is <ubuntuuitoolkit.emulators.Tabs object at 0x9cf780c>17:01
nerochiarot1mp: so it seems proper17:01
nerochiarot1mp: but it fails with this exception when i try to use selectedTab: AttributeError: Class 'Tabs' has no attribute 'selectedTab'.17:02
untitled1t1mp:  that dont lool right to me the property that is17:05
untitled1give a id to the Tabs and then use that in your property17:05
t1mpnerochiaro: I think that select_single will go wrong if there are multiple Tabs components around.17:06
t1mpnerochiaro: but if you have only one, that's not the problem here17:06
untitled1t1mp:  pastebin ?17:07
untitled1hard to read on this IRC client17:07
t1mpnerochiaro: the property is readonly. you could remove that from Tabs.qml to see if it makes any difference17:07
t1mpnerochiaro: but if that is the problem and you are not trying to write selectedTab, then its a weird bug.17:08
t1mpuntitled1: are you nerochiaro ?17:08
t1mpuntitled1: I only pasted the definition of selectedTab from Tabs.qml: http://pastebin.ubuntu.com/6546697/17:09
untitled1t1mp:  no I am not17:11
nerochiarot1mp: i'm not untitled1 ;)17:17
t1mpnerochiaro: I wonder whether ubuntuuitoolkit.emulators.Tabs is the same as the Ubuntu.Components.Tabs instance, and not some python object17:17
nerochiarot1mp: it's a problem in AP I guess. I seem to remember it could only serialize properties that are not objects17:17
t1mpelopio: ^ any ida?17:17
t1mp*idea17:17
untitled1nerochiaro:  consider your-self lucky :P17:17
nerochiarountitled1: ;)17:18
t1mpnerochiaro: the same construction seems to work for toolbar tests17:18
nerochiarot1mp: hmm, interesting. not really sure, but i worked around it for now. i'll fix it again if any AP experts can help me17:18
t1mpnerochiaro: can you print("tabs") in your tabs.onCompleted to compare the address?17:19
nerochiarot1mp: for some reason i can't see the app's output in AP tests17:19
nerochiarot1mp: on desktop17:20
=== gatox is now known as gatox_lunch
nerochiarogreyback|london: when i stop an app via the shell, is it any different in terms of things the app will do to cleanup than when i send it a SIGTERM ?17:25
greyback|londonnerochiaro: nothing I am aware of17:27
nerochiarogreyback|london: the StateSaver doesn't seem to do its job when i do that17:27
nerochiarogreyback|london: that = SIGTERM17:27
greyback|londonnerochiaro: oops lemme check17:27
untitled1Hello there any time that I press the qt home button in qtcreator and then press develop it opens like 4 windows. Can I disable this or is it a bug ?17:27
greyback|londonnerochiaro: ok I rely on upstart-app-launch to do the right thing.17:28
untitled1Or should I build a new creator ?17:28
greyback|londonnerochiaro: did you try "upstart-app-launch <appId>" to start it, and "upstart-app-stop <appId>" ?17:29
nerochiarogreyback|london: i'm on desktop17:29
untitled1is the sdk tools still built into the creator (in the src) or is it in its own branch yet ?17:29
greyback|londonnerochiaro: if you kill an app, it has no time to save its state. I doubt SDK has added a signal catch17:29
nerochiarogreyback|london: running unit tests17:29
nerochiaroer, AP tsts17:29
nerochiarogreyback|london: well, i need a way to verify that if i do something that gets saved by StateSaver, when the app comes back it will restore the state. in AP tests.17:30
greyback|londonnerochiaro: ah, the lifecycle signals are sent via Mir, so that won't work on desktop17:30
nerochiarogreyback|london: what won't work ? not sure what are the lifecycle signals17:30
greyback|londonnerochiaro: app needs time to save it's state. Usually shell sends a signal to the app (via Mir) to inform it "save state now as I'll SIGSTOP you in 3 seconds, and maybe kill you"17:31
nerochiarogreyback|london: so how do i sent that signal (on device) from an AP test ?17:31
greyback|londonnerochiaro: I dunno. You'll need to ask the SDK guys probably17:32
nerochiarot1mp: ^17:32
nerochiaroom26er: ^17:32
greyback|londonnerochiaro: it's a legit question, sorry but it's not something I've needed to try yet17:32
nerochiarogreyback|london: no problem. also i think it would be wise for desktop if the SDK catches SIGINT and SIGTERM and goes the same thing as it would do when receiving this MIR signal17:33
greyback|londonnerochiaro: I can't think of any obvious bad consequence to that idea. As long as there's a way to nuke an app (kill it, don't let it save state) then I think it's reasonable17:35
untitled1nerochiaro:  I would ask anything about AP to Nicholas Skaggs unless... you are him17:37
nerochiarogreyback|london: SIGKILL no ?17:37
nerochiarountitled1: i'm not. what's his nick here ?17:37
greyback|londonnerochiaro: yep17:37
untitled1nerochiaro:  not sure check on LP17:37
untitled1nerochiaro:  balloons17:38
nerochiarogreyback|london: ok, i'll talk to zsombi tomorrow and we'll see17:38
greyback|londonnerochiaro: cool17:38
* balloons hears something17:40
nerochiaroballoons: do you know if a property that is a QML object can be handled properly by AP ?17:42
t1mpnerochiaro: you want to send a signal from AP to your app that it's going to be killed?17:44
t1mpnerochiaro: I have no idea17:44
nerochiarot1mp: no, i want to send a signal to my app so that it quits17:44
nerochiarot1mp: in a way that StateSaver still does its job17:44
balloonsnerochiaro, you can read properties with AP certainly17:45
balloonsyou want to set a property with AP?17:45
nerochiaroballoons: properties of any type ? or just of primitive types17:45
nerochiaro?17:45
t1mpnerochiaro: best ask zsombi, he wrote the statesaver. but he's eod for today17:45
nerochiarot1mp: will do tomorrow17:46
balloonsnerochiaro, I think I may have ran into issues, but it's tough to remember. Easiest thing to do is simply try and see if it falls down.17:48
nerochiaroballoons: yes, it fails, the property isn't there17:49
balloonsnerochiaro, I will say I just recently added an used a property, but it was a bool17:49
nerochiaroballoons:  anyways, time for me to EOD, I'll have another look tomorrow17:50
nerochiaroballoons: thanks for help so far17:50
balloonsnerochiaro, I think you might be correct in that non-primitive types are an issue.17:50
balloonsI have sinking feeling about it now17:50
balloonsnerochiaro, cheers17:50
nerochiaroballoons: ah, ok. i have a workaround in that case, so no worries17:50
=== nerochiaro is now known as nerochiaro|afk
=== bfiller is now known as bfiller_afk
=== mhall119 is now known as mhall119|afk
=== gatox_lunch is now known as gatox
nik90t1mp: toolbar bug -> https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/125667418:31
ubot2`Launchpad bug 1256674 in Ubuntu UI Toolkit "Toolbar fades out even if submenu is opened on it" [Undecided,Confirmed]18:31
dakernik90: i just noticed that a few minutes ago :D18:33
nik90daker: I noticed that while using a popover on my app, but didnt get around to reporting it. So thanks to the O.18:34
nik90OP818:34
nik90OP*18:34
=== mhall119|afk is now known as mhall119
nik90Can anyone in the room confirm bug https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/125929019:52
ubot2`Launchpad bug 1259290 in Ubuntu UI Toolkit "Popover does not autohide automatically when using a delegate" [Undecided,New]19:52
nik90it is related to the popover in a toolbar19:52
=== bfiller_afk is now known as bfiller
=== salem_ is now known as _salem
=== timp is now known as t1mp
dakerThe new MDN looks absolutely amazing https://developer.mozilla.org22:41
nik90+122:56

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