Re: [SailfishDevel] ConfigurationValue default path

2018-05-21 Thread Slava Monich
A nice thing about dconf is that your app is notified when settings are changed by another process, e.g. the settings app. Settings applets are not allowed in harbour though :) Cheers, -Slava Ok, got it working, thank you. But since I want this to be as portable as possible (I manage to make

Re: [SailfishDevel] ConfigurationValue default path

2018-05-21 Thread joao morgado via Devel
Ok, got it working, thank you. But since I want this to be as portable as possible (I manage to make one repo for sailfish and android), I would rather use Settings from Qt.labs.settings 1.0, wich doenst seem to be available in sailfish.  I'm thinking on creating a class based on QSettings and e

Re: [SailfishDevel] ConfigurationValue default path

2018-05-21 Thread Pekka Vuorela
On Mon, 2018-05-21 at 04:45 +, joao morgado via Devel wrote: > Hi Martin > > Thanks for your replay. > I did a very small example, trying to save a rectangle color, but if > fails. When starting, it's always red. Am I missing something ? > > > ConfigurationValue { > id: myse

Re: [SailfishDevel] ConfigurationValue default path

2018-05-20 Thread Martin Kampas
via Devel [devel@lists.sailfishos.org] Sent: Monday, May 21, 2018 6:45 AM To: Sailfish OS Developers Subject: Re: [SailfishDevel] ConfigurationValue default path Hi Martin Thanks for your replay. I did a very small example, trying to save a rectangle color, but if fails. When starting, it&#

Re: [SailfishDevel] ConfigurationValue default path

2018-05-20 Thread joao morgado via Devel
Hi Martin Thanks for your replay. I did a very small example, trying to save a rectangle color, but if fails. When starting, it's always red. Am I missing something ? Rectangle {id: mycolorcolor: "red"//color: mysettings.saveColoranchors.fill: parent Mous

Re: [SailfishDevel] ConfigurationValue default path

2018-05-17 Thread Martin Kampas
Hi João, The storage backend is dconf https://wiki.gnome.org/Projects/dconf BR, Martin From: Devel [devel-boun...@lists.sailfishos.org] on behalf of joao morgado via Devel [devel@lists.sailfishos.org] Sent: Friday, May 18, 2018 6:54 AM To: devel@lists.sailfishos