2013/8/7 Kevin Krammer <[email protected]>: > On Wednesday, 2013-08-07, Jerome Leclanche wrote: >> On Wed, Aug 7, 2013 at 7:00 AM, PCMan <[email protected]> wrote: > >> > 3. Should we use dconf-qt, which is done by Canonical instead, or >> > using our own simple class mimicking QSettings? Personally I prefer >> > our own solution and this can be included in liblxqt. >> >> Seeing as dconf support will ultimately end up in Qt (god knows when, >> though), I recommend we use our own solution for the time being and >> eventually switch to the native one. > > Not to forget that there is a third option: contribute an implementation to Qt > upstream and then use oficial Qt API.
I recently shared my work on the Qt development mailing list: http://lists.qt-project.org/pipermail/development/2013-July/012028.html Currently there's a class that reads a JSON schema, sort of what GSettings does, and offer a simple value()/setValue() API much like current QSettings. This is currently done at runtime but I realize now that it's pretty complicated to get it right, I see benefits moving the burden to compile time much like KConfig does. A cli program would read the schema and generate a nice C++ class, maybe even QML code if asked to, with proper typing and default values. The plan is: - Simple QObject class that loads and saves properties defined in derivate classes for C++ applications (something like Qt.labs.settings, see http://lists.qt-project.org/pipermail/development/2013-July/011719.html) - Lay down an API for backends - dconf backend (I have a desperate need for changes notifications sooner rather than later) - INI backend to be used by default - cli program to generate code from a schema Help on this would be awesome. My goal is to get it included in Qt, this means that you can use it now and transition to the Qt API should be smooth. The source tree supports both Qt 4 and Qt 5. -- Out of the box experience http://www.maui-project.org/ ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Lxde-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lxde-list
