<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<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 tabindex="-1">
<div style="direction: ltr;" id="divRpF504114"><font color="#000000" face="Tahoma" size="2"><b>From:</b> devel-bounces@lists.sailfishos.org [devel-bounces@lists.sailfishos.org] on behalf of Luca Donaggio [donaggio@gmail.com]<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>
<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>
</body>
</html>