[SailfishDevel] Updating gcc?

2016-11-04 Thread Marcin Mielniczuk
Current gcc in Mer is 4.8, which is 2 years old. Current releases (5.4, 6.1) have full support for C++14, 4.8's support for C++11 is only experimental. C++11 brought many important changes such as constexprs or simply really useful ones (auto types). It'd be great to have them in Mer. Are there

[SailfishDevel] Documentation for mlite5

2016-11-04 Thread Marcin Mielniczuk
Is there any online documentation regarding mlite5? I'm not really sure how I should use it in my project, whether I should include or . What is the preferred way of achieving decent linking? I found some examples using PKGCONFIG - is it the good way? There should be at least a minimal example

Re: [SailfishDevel] Persistently storing a ListModel

2016-11-04 Thread Andrey Kozhevnikov
pointer is an address to memory, its pontless to save, you should save data. dconf can be accessed using MGconfItem from mlite5 library. -- Исходное сообщение -- От: "Marcin Mielniczuk" Кому: "Andrey Kozhevnikov" ; "Sailfish OS

Re: [SailfishDevel] Recommended replacement for a spinner?

2016-11-04 Thread Marcin Mielniczuk
This helped a lot! Thanks! Marcin On 01.11.2016 21:59, Osmo Salomaa wrote: > On 01.11.2016 21:15, Marcin Mielniczuk wrote: >> In my app I'd like to present the user a spinner to let them choose an >> arbitrary integer. >> >> What is a recommended replacement for this in Sailfish Silica? A >>

Re: [SailfishDevel] Persistently storing a ListModel

2016-11-04 Thread Marcin Mielniczuk
Thanks a lot! So I'm trying to store a pointer to ListModel and ConfigurationValue drops this silently because it's an invalid value, doesn't it? What is the standard way in Sailfish to access DConf from C++? I think about reimplementing the model as a subclass of QAbstractListModel anyway.