<div dir="ltr">Thank you Joona!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 10, 2014 at 4:42 PM, Joona Petrell <span dir="ltr"><<a href="mailto:joona.petrell@jolla.com" target="_blank">joona.petrell@jolla.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi Luca,<br>
<br>
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.<br>
<br>
Cheers,<br>
<br>
Joona<br>
<br>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> <a href="mailto:devel-bounces@lists.sailfishos.org" target="_blank">devel-bounces@lists.sailfishos.org</a> [<a href="mailto:devel-bounces@lists.sailfishos.org" target="_blank">devel-bounces@lists.sailfishos.org</a>] on behalf of Luca Donaggio [<a href="mailto:donaggio@gmail.com" target="_blank">donaggio@gmail.com</a>]<br>
<b>Sent:</b> 10 June 2014 17:30<br>
<b>To:</b> Sailfish OS Developers<br>
<b>Subject:</b> [SailfishDevel] Detecting OS version<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>Hi all,<br>
<br>
</div>
recent update (1.0.7.16) added fast scrolling to Silica flickable QML components (like SilicaListView).<br>
</div>
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.<br>
<br>
</div>
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?<br>
<br>
</div>
This way I can avoid cluttering my app UI with elements which basically duplicate the same functionality:<br>
<br>
</div>
if OS version >= 1.0.7.16 / system fast-scroll available: do nothing<br>
</div>
else: enable custom fast-scroll<br>
<div><br>
<div>
<div>
<div>
<div>
<div>
<div>
<div>-- <br>
Luca Donaggio </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>
<br>_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br></blockquote></div><br><br clear="all"><br>-- <br>Luca Donaggio
</div>