Saturday, 2014-07-05

*** inte is now known as inte_away00:01
*** s1gk1ll has quit IRC00:01
*** qqK has quit IRC00:03
*** danielwf has quit IRC00:10
*** M4rtinK has quit IRC00:14
*** zhxt_lp has joined #sailfishos00:19
*** Blizzz has quit IRC00:32
*** s1gk1ll_ has quit IRC00:35
*** msava has quit IRC00:38
*** s1gk1ll has joined #sailfishos00:42
*** s1gk1ll has quit IRC00:45
*** s1gk1ll has joined #sailfishos00:52
*** screwjack has quit IRC01:23
*** Mossepo has quit IRC01:28
*** meegobit_ has joined #sailfishos01:29
*** meegobit has quit IRC01:32
*** fracting has joined #sailfishos01:33
*** fracting has quit IRC01:39
*** xnbya has quit IRC01:44
*** xnbya has joined #sailfishos01:46
*** softmetz has joined #sailfishos01:47
*** softmetz_ has quit IRC01:51
*** MoritzJT has quit IRC02:24
*** meegobit_ is now known as meegobit02:25
*** zhxt_lp has quit IRC02:25
*** R-Z has quit IRC02:34
*** ionstorm has joined #sailfishos02:37
*** Morpog_PC__ has joined #sailfishos02:44
*** jjarven has quit IRC03:33
*** kimmoli_sailing_ has quit IRC03:34
*** Eismann has quit IRC03:34
*** Eismann has joined #sailfishos03:34
*** tat_ has joined #sailfishos03:35
*** tat has quit IRC03:35
*** tat_ has quit IRC03:38
*** ionstorm has quit IRC03:46
*** ionstorm has joined #sailfishos03:46
*** jjarven has joined #sailfishos03:50
*** Makinit has quit IRC03:52
*** Makinit has joined #sailfishos03:52
*** gexc_phone has joined #sailfishos03:55
*** uvatbc has quit IRC03:56
*** uvatbc has joined #sailfishos03:56
*** gexc_phone has quit IRC04:02
*** zhxt_lp has joined #sailfishos04:27
*** TMavica has joined #sailfishos04:28
*** zhxt_lp has quit IRC04:34
*** zhxt_ has joined #sailfishos04:35
*** n9mx has joined #sailfishos04:54
*** olafh has joined #sailfishos04:59
*** silmoc has joined #sailfishos05:10
*** plfiorini has joined #sailfishos05:13
*** s1gk1ll_ has joined #sailfishos05:14
*** s1gk1ll has quit IRC05:14
*** BasilSemuonov has joined #sailfishos05:15
*** dhbiker has joined #sailfishos05:36
*** Eismann has quit IRC05:37
*** Eismann has joined #sailfishos05:38
*** s1gk1ll_ has quit IRC05:42
*** Nc_ has joined #sailfishos05:44
*** sletta has joined #sailfishos05:54
*** Nc_ has quit IRC05:54
*** s1gk1ll_ has joined #sailfishos06:08
*** n9mx has quit IRC06:09
*** DevBot has quit IRC06:11
*** tbr has quit IRC06:11
*** s1gk1ll has joined #sailfishos06:15
*** s1gk1ll_ has quit IRC06:15
*** inte_away is now known as inte06:16
*** s1gk1ll has quit IRC06:25
*** s1gk1ll_ has joined #sailfishos06:25
*** s1gk1ll_ has quit IRC06:32
*** s1gk1ll_ has joined #sailfishos06:41
*** dhbiker has quit IRC06:41
*** zhxt_ has quit IRC06:45
*** zhxt_ has joined #sailfishos06:54
*** dhbiker has joined #sailfishos06:58
*** Shaan7 is now known as TestUser12307:01
*** TestUser123 is now known as Shaan707:01
*** TMavica has quit IRC07:04
*** TMavica has joined #sailfishos07:04
*** inte is now known as inte_away07:12
*** furikku has joined #sailfishos07:16
Nicd-hmm, when deploying from the SDK, I get four lines like this: [W] MGConfItem::update_value:77 - MGConfItem Failed to read "/desktop/jolla/theme/font/sizeMultiplier"07:19
Nicd-I didn't get those before, is that bad?07:19
*** jstaniek has joined #sailfishos07:26
*** raimue has joined #sailfishos07:31
*** Raim has quit IRC07:31
*** raimue has quit IRC07:34
*** Raim has joined #sailfishos07:36
*** Nc_ has joined #sailfishos07:36
*** martyone__ has joined #sailfishos07:40
*** goroboro has quit IRC07:52
*** roboro has joined #sailfishos07:52
*** silmoc has quit IRC07:56
*** gexc has quit IRC07:58
kaltsiNicd-: those can be ignored08:01
Nicd-ok, good08:02
kaltsiNicd-: in some future release you won't see those anymore because: https://github.com/nemomobile/mlite/commit/82b557f200444cb344996214cfdbd7d3a603be2d08:02
*** sletta has quit IRC08:03
Nicd-yaay08:04
*** Lipevakala has joined #sailfishos08:05
*** martyone__ has quit IRC08:05
*** silmoc has joined #sailfishos08:08
*** alin has quit IRC08:10
*** Plnt has quit IRC08:13
*** qqK has joined #sailfishos08:15
*** ionstorm has quit IRC08:16
*** Plnt has joined #sailfishos08:18
*** xerpi has joined #sailfishos08:27
*** Nc_ has quit IRC08:27
*** Sequenced has joined #sailfishos08:32
*** Sequenced_ has quit IRC08:34
*** wernel has joined #sailfishos08:35
*** Lipevakala_ has joined #sailfishos08:36
*** Lipevakala has quit IRC08:39
*** SfietKonstantin has joined #sailfishos08:50
*** martyone__ has joined #sailfishos08:53
*** SfietKonstantin has quit IRC08:55
*** Nightmare__ has joined #sailfishos08:59
*** wernel has quit IRC09:00
*** xruxa_away has quit IRC09:00
*** marxistvegan has joined #sailfishos09:00
*** crazy_imp has quit IRC09:01
*** crazy_imp has joined #sailfishos09:03
*** Sequenced_ has joined #sailfishos09:03
*** Sequenced has quit IRC09:07
*** kunev has joined #sailfishos09:09
*** kunev has quit IRC09:13
*** martyone__ has quit IRC09:17
*** gexc has joined #sailfishos09:18
*** screwjack has joined #sailfishos09:23
coderuskaltsi: bte about dconf, can anyone teach me a bit?09:26
coderusbtw*09:26
*** jstaniek has quit IRC09:30
*** M4rtinK has joined #sailfishos09:30
*** xruxa_away has joined #sailfishos09:34
*** kunev has joined #sailfishos09:36
coderuskaltsi: and i want to upgrade to latest dsk soon, is switching between devices to deploy and run was fixed>09:39
coderus?09:39
coderussdk*09:39
*** Morpog_PC___ has joined #sailfishos09:39
*** spider-mario has joined #sailfishos09:39
* coderus using irssi on a vps, and having >800ms ping.09:39
*** Morpog_PC__ has quit IRC09:42
*** screwjack has quit IRC09:50
*** ottulo has joined #sailfishos09:53
*** inte_away has quit IRC09:53
*** Eztran has joined #sailfishos09:57
*** disharmonic has joined #sailfishos10:01
*** piggz has quit IRC10:01
*** SfietKonstantin has joined #sailfishos10:05
*** zenvoid has quit IRC10:07
*** Nc_ has joined #sailfishos10:07
*** MoritzJT has joined #sailfishos10:09
*** MoritzJT has quit IRC10:10
*** zenvoid has joined #sailfishos10:13
*** leinir has quit IRC10:15
*** Sail0r has joined #sailfishos10:17
*** leinir has joined #sailfishos10:18
*** killSwam has joined #sailfishos10:23
*** Lipevakala has joined #sailfishos10:24
*** Lipevakala_ has quit IRC10:27
*** Lipevakala_ has joined #sailfishos10:28
*** soexit has joined #sailfishos10:30
*** Lipevakala has quit IRC10:31
*** Lipevakala has joined #sailfishos10:32
*** Lipevakala_ has quit IRC10:32
*** Lipevakala_ has joined #sailfishos10:40
*** Lipevakala has quit IRC10:40
*** piggz has joined #sailfishos10:47
*** nsuffys has joined #sailfishos10:47
*** Nc_ has quit IRC10:49
*** msava has joined #sailfishos10:52
*** soexit has quit IRC10:52
*** soexit has joined #sailfishos10:53
walokraso, if I want to capture image from camera (for upload to somewhere) I have to write it myself?10:54
*** Nc_ has joined #sailfishos10:54
walokraor just look some code like from mitakuuluu210:54
walokrawould be nicer to have same kind of function for camera as there's for gallery10:57
*** marxistvegan has quit IRC10:57
tadzikalso, media player10:57
tadzikSkippingStones is actually packing mediaplayer.qml (!) to be able to remotely fetch currently played song10:57
*** Pat_o has quit IRC10:57
*** mike7b4_jolla has joined #sailfishos10:59
*** Sail0r has quit IRC11:00
*** Sail0r has joined #sailfishos11:01
M4rtinKheh11:01
M4rtinKbundling is fun and games11:01
M4rtinKuntil there is either an vulnerability or API break for the stuff you are bundling11:02
*** soexit has quit IRC11:02
*** soexit1 has joined #sailfishos11:02
*** tomyri has quit IRC11:02
*** tomyri has joined #sailfishos11:04
M4rtinKimagine the was upstream for Silica on Github (or somewhere else) where we could send patches adding features like this :)11:04
tadzikone can dream..11:04
*** Lipevakala_ has quit IRC11:05
*** Lipevakala_ has joined #sailfishos11:05
tadzikI was wondering recently why wouldn't they do that, since they still publish the source code every now and then11:05
*** Sail0r has quit IRC11:05
*** piggz has quit IRC11:05
M4rtinKdoesn't make sense really11:05
tadzikand my conclusion was that having everything on github or somewhere is fun and games until you have to maintail all this11:06
tadzikread every issue, reply to every pull request etc11:06
M4rtinKwell11:06
tadzikthis needs effort, which Jolla may not have resources to spare11:06
M4rtinKissues = free QA11:06
tadzik(I suck at english)11:06
M4rtinKpull requests = free development11:06
tadzikwell, look at what they did with the android launcher11:06
tadzikwhy do you think they only shipped it to limited number of people?11:06
M4rtinKI am oversimplifying but it is like this11:06
tadzikTo limit the incoming bug traffic, obviously11:07
tadzikbecause someone needs to sort out all that bug traffic11:07
tadzikI imagine their move on publishing the sailfish browser on github was a test run of this11:07
M4rtinKwell for one I don't see any point in wasting resources on the Android launcher :)11:07
tadzik"let's see how much resources it'll eat, maybe we'll push more stuff then"11:07
M4rtinKcould be invested better to the product you actually sell :)11:07
tadzikwell, they obviously want to target android users, and this is just another step11:08
EztranWhile it may be working out that way, I'm not sure the Jolla was ever their main product - SailfishOS was.11:08
tadzik"hey, here's a better launcher than the one you have, and btw you can switch to our platform which also runs your android apps"11:08
tadzikandroid launcher is the entry drug for them11:08
tadzikEztran: agreed11:08
M4rtinKwell, that's what I mean11:08
M4rtinKconsidering their limited resources it makes even more sense to be as open to contributions as possible11:09
M4rtinKsay for example that the Silica documentation was on Github11:10
M4rtinKwhat is easier - scrapping bug reports on docs from ML and Together11:10
M4rtinKor merging pull requests or handling issues directly at the source ?11:10
EztranTogether is basically an example of what happens when the floodgates open right now, IMO.11:10
tadzikheheh11:10
M4rtinKwell, it works as you wold expect11:11
Stskeepsas a personal comment, it would be a better world if valuations of companies didn't see open sourcing as giving away assets..11:11
EztranOuch.11:11
M4rtinKlike a normal stackoverflow chaos :)11:11
* tadzik just realized that mersdk VM is single-cpu, and his "make -j4" is only a placebo11:15
*** Summeli has quit IRC11:16
M4rtinKLOL11:16
tadzik"why is htop only showing one core milling? ....oh"11:17
Stskeepsadd more cpus to the vm11:17
tadzikhm, I guess I can do that11:17
tadzikthen I'll probably have to stop starting it from sailfish sdk11:18
StskeepsVBoxManage11:20
*** n9mx has joined #sailfishos11:21
tadzikhmm, I'll give it a shot when this thing is done building11:21
*** soexit1 has quit IRC11:23
*** Summeli has joined #sailfishos11:23
tadzik.....aaand it run out of memory :(11:26
*** grzywacz has joined #sailfishos11:26
*** soexit has joined #sailfishos11:26
*** SfietKonstantin has quit IRC11:28
*** freddeloy2 has joined #sailfishos11:29
*** jstaniek has joined #sailfishos11:35
*** RoKenn has joined #sailfishos11:41
*** piggz has joined #sailfishos11:47
*** xerpi has quit IRC11:50
*** tortoisedoc has joined #sailfishos11:51
*** tortoisedoc has quit IRC11:54
*** msava has quit IRC11:55
*** freddeloy2 has quit IRC11:57
*** freddeloy2 has joined #sailfishos11:58
*** Funkeh` has quit IRC11:58
*** msava has joined #sailfishos11:58
*** freddeloy2 has quit IRC12:00
*** Funkeh` has joined #sailfishos12:04
*** piggz has quit IRC12:04
*** alin has joined #sailfishos12:08
*** alin has quit IRC12:08
*** alin has joined #sailfishos12:08
*** Nc_ has quit IRC12:08
*** screwjack has joined #sailfishos12:09
*** Nc_ has joined #sailfishos12:11
*** SfietKonstantin has joined #sailfishos12:13
*** marxistvegan has joined #sailfishos12:13
*** alin has quit IRC12:14
*** master_of_master has joined #sailfishos12:17
*** SfietKonstantin has quit IRC12:19
*** Eztran has quit IRC12:20
*** master_o1_master has quit IRC12:21
*** zhxt_ has quit IRC12:27
*** tat has joined #sailfishos12:35
*** mike7b4_jolla has quit IRC12:39
*** alin has joined #sailfishos12:44
*** Sequenced has joined #sailfishos12:46
*** Sequenced_ has quit IRC12:48
*** Sail0r has joined #sailfishos12:49
*** dharman has joined #sailfishos12:49
*** Sequenced_ has joined #sailfishos12:49
*** Sequenced has quit IRC12:53
*** Sail0r has quit IRC12:54
*** marxistvegan has quit IRC12:54
*** marxistvegan has joined #sailfishos12:54
*** R-Z has joined #sailfishos12:55
*** n9mx has quit IRC12:59
*** n9mx has joined #sailfishos13:02
*** marxistvegan has quit IRC13:02
coderushow can i check if installed sailfish version using gconf or sconf?13:06
coderusdconf*13:06
coderusMGConfItem and nemomobine-configuration doesn't contain listItems method i need to use13:07
*** Sail0r has joined #sailfishos13:07
special(maybe you should submit a PR to add it?)13:07
coderusi will make my own backends, but i need to create gconf or dconf depends of sailfish version13:07
coderusspecial: sure, but it can be runned on old sailfish versions too13:08
specialwell, in practice there are only three versions people can install. And I think upgrades are adopted quite fast.13:09
special(those three versions are 1.0.0.5, 1.0.2.5, and the most recent store update)13:09
*** tat has quit IRC13:09
coderusN9 with ancient 1.0.2.5 is still there :D13:10
specialit seems to me that it'd be reasonable to fail gracefully and encourage the user to upgrade if dconf isn't available?13:10
coderushm13:10
coderusis dconf available in 1.0.2.5 repos13:10
coderus?13:10
*** jjarven has quit IRC13:10
coderusi can use dconf-only then :)13:11
specialdon't think os13:12
specialso*13:12
coderusthat the reason of switching between gconf - dconf on different sailfish versions then :)13:12
specialbecause of N9 users?13:12
coderusyes ")13:13
specialencourage somebody to update the N9 port, then :p13:13
coderuskernel adaptation in progress, you know13:13
coderusthat the only stop-factor13:13
coderusokay,i can check with rpm cache if dconf installed myself13:15
specialthat does not sound like the easiest solution13:15
coderuswhy not?13:15
specialwhy not just check if the binary/file/?? you need from dconf is available?13:15
coderusor just if QFile("... libdconf ...").exists()13:16
coderusaha :)13:16
coderusi think so :)13:16
*** arcean has joined #sailfishos13:17
*** fracting has joined #sailfishos13:22
*** jjarven has joined #sailfishos13:27
coderusthanks :)13:28
*** fracting has quit IRC13:28
*** inte_away has joined #sailfishos13:28
*** inte_away has quit IRC13:28
*** inte_away has joined #sailfishos13:28
*** nsuffys has quit IRC13:33
*** killSwam has quit IRC13:35
*** fracting has joined #sailfishos13:39
*** plfiorini has quit IRC13:41
*** nsuffys has joined #sailfishos13:46
*** grzywacz has quit IRC13:48
*** Nirkus has joined #sailfishos13:49
*** Nc_ has quit IRC13:50
*** plfiorini has joined #sailfishos13:53
*** M4rtinK has quit IRC13:57
*** piggz has joined #sailfishos13:58
*** M4rtinK has joined #sailfishos13:59
*** Madry72 has joined #sailfishos14:01
*** jstaniek has quit IRC14:02
*** Nightmare__ has quit IRC14:06
*** kunev has quit IRC14:08
*** Eztran has joined #sailfishos14:10
*** ced117 has quit IRC14:11
*** xerpi has joined #sailfishos14:11
*** Sail0r has quit IRC14:15
*** Sail0r has joined #sailfishos14:16
*** Sail0r has quit IRC14:20
*** ced117 has joined #sailfishos14:24
*** soexit has quit IRC14:33
*** tbr-fi has joined #sailfishos14:34
*** alin has quit IRC14:34
*** Eztran has quit IRC14:40
*** Lipevakala has joined #sailfishos14:41
*** Lipevakala_ has quit IRC14:43
*** plfiorini has quit IRC14:43
*** piggz has quit IRC14:49
*** fracting has quit IRC14:49
*** Lipevakala_ has joined #sailfishos15:00
*** piggz has joined #sailfishos15:00
*** Lipevakala has quit IRC15:04
*** Zotan has joined #sailfishos15:05
*** Zotan has quit IRC15:06
*** Zotan has joined #sailfishos15:06
*** Madry72 has quit IRC15:13
*** Madry72 has joined #sailfishos15:13
*** piggz has quit IRC15:15
*** silmoc_ has joined #sailfishos15:15
*** jstaniek has joined #sailfishos15:16
*** Sail0r has joined #sailfishos15:16
*** silmoc has quit IRC15:17
*** silmoc_ has quit IRC15:20
*** Madry72 has quit IRC15:22
*** silmoc_ has joined #sailfishos15:24
*** SfietKonstantin has joined #sailfishos15:35
*** silmoc_ has quit IRC15:37
*** silmoc_ has joined #sailfishos15:40
*** locusf has quit IRC15:43
*** locusf has joined #sailfishos15:43
*** locusf has quit IRC15:43
*** n9mx has quit IRC15:44
*** locusf has joined #sailfishos15:44
*** SfietKonstantin has quit IRC15:51
*** plfiorini has joined #sailfishos15:58
*** Sail0r has quit IRC16:03
*** Sail0r has joined #sailfishos16:04
*** arcean has quit IRC16:07
*** oniongarlic has quit IRC16:07
*** Sail0r has quit IRC16:08
*** inte_away has quit IRC16:11
*** itbaron has joined #sailfishos16:14
*** oniongarlic has joined #sailfishos16:14
*** xerpi has quit IRC16:16
*** screwjack has quit IRC16:24
*** gexc has joined #sailfishos16:26
*** screwjack has joined #sailfishos16:29
*** Sequenced has joined #sailfishos16:30
*** Sequenced_ has quit IRC16:32
*** Eismann has quit IRC16:36
*** Eismann has joined #sailfishos16:36
*** R-Z has quit IRC16:41
*** xfrancis has joined #sailfishos16:43
*** Sequenced_ has joined #sailfishos16:44
*** screwjack has quit IRC16:45
*** Sequenced has quit IRC16:47
*** n9mx has joined #sailfishos16:49
*** Zotan has quit IRC16:57
*** piggz has joined #sailfishos16:59
*** Sail0r has joined #sailfishos16:59
*** MoritzJT has joined #sailfishos17:02
*** Mossepo has joined #sailfishos17:08
*** soexit has joined #sailfishos17:09
*** radekp has joined #sailfishos17:17
coderusso, it's enough to grab libdconf to have dconf in system?17:21
coderusah, seems there are also some dconf-service running...17:22
*** piggz has quit IRC17:30
M4rtinKI think dconf is actually the default since last update17:31
specialit is used instead of gconf, yes17:32
specialwe had some data loss issues with gconf among other things17:32
*** piggz has joined #sailfishos17:33
*** TMavica has quit IRC17:35
*** soexit has quit IRC17:37
*** piggz has quit IRC17:38
*** JukPer has quit IRC17:39
M4rtinKwell, I still rather handle my application settings myself17:41
*** kunev has joined #sailfishos17:42
M4rtinKso I don't have to care about the Xsettings to Zconf migrations of the week17:42
specialsure. Most of the value in dconf/gconf/etc is system-level settings17:42
M4rtinKand also the application can run where no settings management libs are available at all17:42
specialQSettings is crap, though :p17:42
M4rtinKyeah, for system level it can be good17:42
M4rtinKwith callbacks & co17:43
coderus../dconf-test/src/mgconfitem.cpp: In function 'GConfClient* get_gconf_client()':17:48
coderus../dconf-test/src/mgconfitem.cpp:60:5: warning: 'void g_type_init()' is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) [-Wdeprecated-declarations]17:48
coderussuxxxx17:48
coderuscant compile gconf test project :D17:48
coderusM4rtinK: i need light settings backend for two processes using same settings at the same moment :D17:50
coderusi found gconf/dconf is the best one for me17:50
M4rtinKyeah, I have been thinking about that17:51
M4rtinKpeople running two modRanas or Mierus for some reason17:51
M4rtinKcurrently the last one closed will nuke any changes the any previous instances did in the options :)17:52
coderusthe worst qsettings bug i got is: https://github.com/CODeRUS/mitakuuluu2/issues/16517:52
specialthat sounds like maybe you were using the (weird, broken) API wrong17:53
coderusafter lipstick crash/restart my qsettings losing some settings randomly. saving connfig file with some values unset :D17:53
M4rtinKas the settings are just a Python dictionary dumped/loaded at once using the Marshal module17:53
specialyou're supposed to create QSettings, write to it, and let it destruct, *NOT* to keep any QSettings instance around17:53
M4rtinKso that's working as correctly :)17:53
coderussettings is just ini files, i know :)17:53
M4rtinK*as expected17:53
coderusspecial: yes, i have qsettings objet in stack livin17:54
M4rtinKI think If one wanted to be independent, sqlite is probably the best solution for multi-process settings17:55
specialit doesn't do atomic writes, so you can lose data if the timing is wrong17:55
M4rtinKa bit heavy weight but easier than a custom solution (which is also doable of course)17:56
coderusM4rtinK: i had settings in my sqlite database before17:58
coderusbut it have some issues with multiprocess access :)17:59
M4rtinKwell, it has a write lock17:59
*** xfrancis has left #sailfishos17:59
M4rtinKso only one process can write to it at a time17:59
M4rtinKbut it should just block any other until it is done18:00
M4rtinKhaven't tried that myself though18:00
specialsqlite is safe.18:01
coderusso, if i'll make QSettings set; set.read(key, value); for writing and same for reading, it wont break after crash?18:01
specialcoderus: a good rule is to never keep a QSettings instance after returning from a function.18:02
coderusi need some workaround for now, untill everybody move to dconf everybody goes to dconf and until i push some changes to mlite and nemomofile-configuration18:02
coderusnemomobile*18:02
*** arcean has joined #sailfishos18:04
Nicd-hey, if I do 'emit signal(MyCustomClass* pointer);', can I destroy my pointer to it afterwards? will QML take ownership of the object and handle its deletion?18:05
Nicd-the class inherits from QObject18:05
coderusNicd-: youwill emit signal(this) ?18:08
*** plfiorini has quit IRC18:08
Nicd-no18:08
Nicd-but the variable is a pointer to an object which inherits from QObject18:09
Nicd-created with new18:09
*** arcean has quit IRC18:09
coderussure, you cen emit it and use delete pointer, or pointer.deleteLater()18:09
Nicd-but do I have to?18:10
Nicd-won't the QML engine delete it for me once it is garbage collected in javascript?18:10
*** arcean has joined #sailfishos18:11
coderusem, you doing QML stuff or C++ exported to QML?18:11
coderusif you have class exported with qmlRegisterType and created in QML, it will be destroyed in parent destructor too18:13
Nicd-well it looks like this:18:13
Nicd-Hdata* contents = handleHdata(data);18:13
Nicd-    emit bufferLineAdded(contents);18:13
Nicd-handleHdata creates a Hdata with 'new'18:13
Nicd-Hdata is a child of QObject and is registered with qmlRegisterUncreatableType18:13
Nicd-I want my C++ to give it to the QML side in the signal, then I want to forget about it and the question is, will it be deleted when the QML side is finished with it?18:14
specialNicd-: fun topic!18:15
specialthe answer is that it depends18:15
specialNicd-: http://qt-project.org/doc/qt-5/qqmlengine.html#ObjectOwnership-enum18:15
specialif you return a QObject* from an explicitly called Q_INVOKABLE function or slot, it will be owned by javascript and garbage collected18:16
specialyou can call setObjectOwnership to make the choice explicit18:16
Nicd-I'm not returning, I'm generating the objects on the C++ side (based on network input) and send signals to the JS side18:17
*** sletta has joined #sailfishos18:17
Nicd-so I guess I should set JS ownership18:17
coderusNicd- special what if object have parent already? will it continue functioning after setOwnership?18:19
Nicd-I don't know but these objects won't have parents18:19
specialno18:19
specialif it ahs a18:19
specialif it has a QObject parent, it QML ownership doesn't apply18:20
coderusthat what i mean :)18:20
coderusif you have parent already you should use object.deleteLater() in root object onDestruction: {}18:21
Nicd-so special... 'Obj* o = new Obj(); QQmlEngine::setOwnerShip(o, QQmlEngine::JavaScriptOwnership); emit giveToQML(o);' is a valid way of giving objects to the QML side?18:21
Nicd-or is there something else usually used?18:21
specialit's the Ownership, not the Owner Ship, but yes18:21
specialthat should do18:22
specialI'm not sure what happens if nothing in QML ever takes that object, though.18:22
ln-_wtf, there's an app in the store whose uninstallation requires manually killing the binary from the command line??18:22
specialNicd-: is there a reason you're using push instead of pull?18:22
special(emitting the object in a signal rather than having QML stuff request the object)18:23
*** ced117 has quit IRC18:23
Nicd-I have network input (new events) and want to notify the UI18:23
Nicd-sure I could just have a "new events" notification signal and then the UI would pull but that feels clunky18:23
Nicd-I would have imagined pushing is fairly common18:24
specialanother question is if Obj should actually be a QObject18:24
specialnote that you can return things that are like objects with various properties to QML with a QVariantMap18:25
specialif you don't need setters, signals, member functions that is a good option18:25
Nicd-I'll have to think about it18:26
Nicd-it would save me from some custom code. thanks for the suggestion18:26
*** dhbiker has quit IRC18:26
*** MartiMasaKoegx has joined #sailfishos18:27
Nicd-with QVariantMap I could give it to QML as pass-by-value? so I wouldn't have to worry about pointers18:27
specialyep18:28
Nicd-ok, I'll probably move to that. it'll be a hell of a nested map though :P18:29
coderusyou can use qvariantmap or just qvariant. if data is not too complex you can use qstring and JCON.parse18:29
coderusJSON*18:29
Nicd-QVariants are a blessing, I'll say that18:30
Nicd-made implementing the network protocol so much easier18:30
*** tat has joined #sailfishos18:31
coderusmake sure you sending/emiting const &QVariantMap value, otherwise it will be copied before sending :)18:32
coderusoops, const QVariantMap &value18:32
*** kunev has quit IRC18:32
*** piiramar has quit IRC18:33
specialQMap is implicitly shared, copies are cheap, modifying causes a deep copy18:33
specialbut QVariant is also implicitly shared, so the deep copy is actually only a copy of the QMap's data, not of the data it contains18:34
*** ced117 has joined #sailfishos18:35
Nicd-yep, I'm using the implicit sharing to its full potential18:36
*** marxistvegan has joined #sailfishos18:36
*** plfiorini has joined #sailfishos18:39
*** Tofe|Away is now known as Tofe18:42
*** Lipevakala_ has quit IRC18:48
*** Sail0r has quit IRC18:48
*** Sail0r has joined #sailfishos18:48
*** sletta has quit IRC18:51
*** screwjack has joined #sailfishos18:51
*** piiramar has joined #sailfishos18:53
*** tat has quit IRC19:00
*** MartiMasaKoegx has quit IRC19:02
*** n9mx has left #sailfishos19:02
*** n9mx has joined #sailfishos19:03
*** radekp has quit IRC19:04
*** kunev has joined #sailfishos19:04
*** piggz has joined #sailfishos19:07
*** gexc has quit IRC19:08
*** soexit has joined #sailfishos19:09
*** soexit has left #sailfishos19:09
*** soexit has joined #sailfishos19:09
*** n9mx has left #sailfishos19:10
*** Pat_o has joined #sailfishos19:11
*** M4rtinK has quit IRC19:13
*** jstaniek has quit IRC19:23
*** ionstorm has joined #sailfishos19:28
*** furikku has quit IRC19:30
*** disharmonic has quit IRC19:32
*** MoritzJT has quit IRC19:36
*** jjanvier has joined #sailfishos19:37
*** MoritzJT has joined #sailfishos19:39
*** screwjack has quit IRC19:50
*** M4rtinK has joined #sailfishos19:54
*** Sequenced has joined #sailfishos19:54
*** n9mx has joined #sailfishos19:56
*** Sequenced_ has quit IRC19:56
*** Tofe is now known as Tofe|Away19:58
*** arcean has quit IRC20:00
*** ottulo has quit IRC20:00
*** alin has joined #sailfishos20:02
*** ottulo has joined #sailfishos20:06
*** AlmAck has joined #sailfishos20:07
*** silmoc_ has quit IRC20:10
*** alin has quit IRC20:15
*** euroelessar has joined #sailfishos20:16
*** alin has joined #sailfishos20:20
*** kimmoli_sailing_ has joined #sailfishos20:22
*** silmoc_ has joined #sailfishos20:24
*** piggz has quit IRC20:26
*** DarkSim has joined #sailfishos20:36
*** kunev has quit IRC20:46
*** silmoc_ has quit IRC20:53
*** killSwam has joined #sailfishos20:54
*** screwjack has joined #sailfishos20:54
*** silmoc_ has joined #sailfishos21:01
*** kimmoli_sailing_ has quit IRC21:01
*** soexit has quit IRC21:01
*** soexit has joined #sailfishos21:01
*** soexit has left #sailfishos21:01
coderusforgot to ask: what is the preferred way to draw pie chart / arc in QLM without using canvas? or canvas is the best way for that?21:03
coderusQML*21:03
specialcanvas is probably the best way21:04
specialif canvas isn't fast enough, scenegraph items21:05
*** silmoc_ has quit IRC21:05
ln-_can cover action buttons be disabled and enabled based on some conditions?  (i guess not, i don't recall seeing such in any app)21:07
*** silmoc_ has joined #sailfishos21:07
coderusspecial: what is scenegraph?.. newer 21:08
coderusnever saw it21:08
coderuscan anyone share silica ProgressCircle base item sources?21:09
coderusln-_: it's very easy21:09
coderuscheck mitakuuluu cover qml code21:09
specialcoderus: The scenegraph is what qtquick2 uses for rendering. Direct opengl.21:12
coderusoh! links to related articles please! will read all of them :)21:12
specialsearch for qt scenegraph and look at the docs for QSGNode and QQuickItem21:13
specialbut if you've never done it before, you'd find the process of drawing a circle with opengl to be incredibly difficult and crazy21:13
ln-_looks easy indeed... however disabling just one button at a time is probably not be possible?21:14
*** soexit has joined #sailfishos21:14
specialln-_: I think our apps do it by having separate CoverActionList for each state21:14
coderusln-_: never tried that. i need to disable all buttons only21:15
specialbut maybe there's another way too21:15
coderusCoverActionList is non-visual component, it have no active state and can't be disabled/hide as usual Item-based element21:16
coderushaving separate list for One and Two acctions is the only way probably21:16
specialit has an enabled property21:16
* coderus means state for each buttons21:17
coderusnot list itself21:17
coderusand there also possible to override color of items to have > 2 actions :D21:17
coderusthen it will overlap cover and your task view will look uglu21:18
coderusand you will control only first two actions from cover...21:18
coderusbut you will see other 3-100 actions on your cover (on other covers :D)21:18
* coderus crazy and dont control what fingers typing :D21:19
coderus*there is possibility to override cover actions count to have > 2 actions on cover :D21:19
*** itbaron has quit IRC21:21
*** dharman has quit IRC21:21
*** screwjack has quit IRC21:22
* coderus need to sleep, he won't answer you when sleeping.21:23
coderusspecial: it's seems to be a time to learn opengl drawing :)21:24
ln-_thank you, both21:24
*** n9mx has quit IRC21:25
coderusspecial: it i'll write sample code for drawing arc areas i can just usse it as template function and don't care how it works :D21:25
specialscenegraph might also throw you off a bit21:25
specialit's not the QPainter-style drawing API you might be used to21:26
coderusi read some amazing opengl code before21:26
coderusi notied :)21:26
coderusnotiecd*21:27
coderusnoticed*21:28
* coderus off21:28
* coderus fingers living outside bobdy and typing some strange sentencies21:28
* coderus really21:28
*** Morpog_PC___ has quit IRC21:29
*** AlmAck has quit IRC21:29
*** Sail0r has quit IRC21:38
*** inte_away has joined #sailfishos21:38
*** inte_away has quit IRC21:38
*** inte_away has joined #sailfishos21:38
*** killSwam has quit IRC21:41
*** soexit has quit IRC21:45
*** n9mx has joined #sailfishos21:50
*** RoKenn has quit IRC21:50
*** silmoc_ has quit IRC21:50
*** silmoc_ has joined #sailfishos21:54
*** inte_away has quit IRC21:57
*** screwjack has joined #sailfishos21:58
*** AlmAck has joined #sailfishos21:59
*** inte_away has joined #sailfishos22:00
*** inte_away has quit IRC22:00
*** inte_away has joined #sailfishos22:00
*** inte_away is now known as inte22:01
*** spider-mario has quit IRC22:01
intehello sailors22:02
inteis there any way to review a detailed call log?22:02
inteah sorry wanted to ask @jollamobile22:04
*** silmoc_ has quit IRC22:09
*** ponky has quit IRC22:11
*** ponky has joined #sailfishos22:11
*** MoritzJT has joined #sailfishos22:20
*** Mossepo has quit IRC22:23
*** screwjack has quit IRC22:33
*** jjarven has quit IRC22:37
*** nsuffys has quit IRC22:42
*** alboe_ has quit IRC22:43
*** jjarven has joined #sailfishos22:57
*** M4rtinK has quit IRC22:58
*** MoritzJT has quit IRC23:02
*** marxistvegan has quit IRC23:02
*** MoritzJT has joined #sailfishos23:03
*** fracting has joined #sailfishos23:03
*** inte` has joined #sailfishos23:05
*** inte` has quit IRC23:05
*** inte` has joined #sailfishos23:05
*** Funkeh` has quit IRC23:05
*** inte has quit IRC23:09
*** Funkeh` has joined #sailfishos23:09
*** M4rtinK has joined #sailfishos23:11
*** MoritzJT has quit IRC23:12
*** MoritzJT has joined #sailfishos23:13
*** MoritzJT has quit IRC23:17
*** MoritzJT has joined #sailfishos23:18
*** AlmAck has quit IRC23:18
*** MoritzJT has quit IRC23:19
*** qqK has quit IRC23:21
*** fracting has quit IRC23:21
*** fracting has joined #sailfishos23:21
*** fracting has quit IRC23:22
*** fracting has joined #sailfishos23:22
*** fracting has quit IRC23:30
*** olafh has quit IRC23:35
*** piiramar has quit IRC23:42
*** jjanvier has quit IRC23:46
*** msava has quit IRC23:47
*** screwjack has joined #sailfishos23:53
*** ponky has quit IRC23:53
*** ponky has joined #sailfishos23:54
*** phaeron has quit IRC23:57
*** MoritzJT has joined #sailfishos23:58
*** n9mx has quit IRC23:59
*** MoritzJT has quit IRC23:59

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!