[SailfishDevel] Detecting OS version
Luca Donaggio
donaggio at gmail.com
Wed Jun 11 07:49:49 UTC 2014
Thank you Joona!
On Tue, Jun 10, 2014 at 4:42 PM, Joona Petrell <joona.petrell at jolla.com>
wrote:
> Hi Luca,
>
> We haven't yet started versioning Silica APIs (though we probably should
> soon), sorry, but you can check if quickScroll property on your flickable
> has been defined (myFlickable.quickScroll === undefined) to check if the
> quick scroll functionality is available.
>
> Cheers,
>
> Joona
>
> ------------------------------
> *From:* devel-bounces at lists.sailfishos.org [
> devel-bounces at lists.sailfishos.org] on behalf of Luca Donaggio [
> donaggio at gmail.com]
> *Sent:* 10 June 2014 17:30
> *To:* Sailfish OS Developers
> *Subject:* [SailfishDevel] Detecting OS version
>
> Hi all,
>
> recent update (1.0.7.16) added fast scrolling to Silica flickable QML
> components (like SilicaListView).
> Before, for long lists I added a pull up menu with an option to
> fast-scroll back to the top, others (Together app for example) used a
> custom scroll decorator with the same functionality.
>
> Is there a way to detect at run-time (in QML would be perfect, but in C++
> would do the same) if the new functionality is available, or,
> alternatively, which OS version we are in?
>
> This way I can avoid cluttering my app UI with elements which basically
> duplicate the same functionality:
>
> if OS version >= 1.0.7.16 / system fast-scroll available: do nothing
> else: enable custom fast-scroll
>
> --
> Luca Donaggio
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscribe at lists.sailfishos.org
>
--
Luca Donaggio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140611/0c50d05c/attachment.html>
More information about the Devel
mailing list