[SailfishDevel] Recommended replacement for a spinner?

2016-11-01 Thread Marcin Mielniczuk
Hi, 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 TextField with IntValidator? Or is there anything better? -- Marcin ___ SailfishOS.org Deve

[SailfishDevel] Persistently storing a ListModel

2016-11-01 Thread Marcin Mielniczuk
Hi, I'm currently using org.nemomobile.configuration to store the application settings. Now it came out it'd be beneficial to store a ListModel between runs (if a user wants it). I tried the naive approach: property ListModel myModel: modelStorage.value ConfigurationValue { id:

Re: [SailfishDevel] Persistently storing a ListModel

2016-11-01 Thread Andrey Kozhevnikov
you storing pointer to model, not model contents :) to store model data you should recursively convert model data to array, and vise versa. -- Исходное сообщение -- От: "Marcin Mielniczuk" Кому: "Sailfish OS Developers" Отправлено: 01.11.2016 22:32:57 Тема: [SailfishDevel] Persistentl

Re: [SailfishDevel] Recommended replacement for a spinner?

2016-11-01 Thread Kimmo Lindholm
Slider or is the Clock time selector available for us to customize? > -Original Message- > From: Devel [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Marcin > Mielniczuk > Sent: 1. marraskuuta 2016 21:16 > To: Sailfish OS Developers > Subject: [SailfishDevel] Recommended replac

Re: [SailfishDevel] Recommended replacement for a spinner?

2016-11-01 Thread Osmo Salomaa
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 TextField with IntValidator? Or is there anything better? Add inputMethodHints and it should