<div dir="ltr">You can propagate C++ knowledge to QML, Antoine<div><br></div><div>For example setContextProperty #ifdef <span style="font-family:arial,sans-serif;font-size:16.363636016845703px">QT_QML_DEBUG</span></div><div>
<br></div><div>Best regards,</div><div>Artem.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 12, 2014 at 1:41 PM, Antoine Reversat <span dir="ltr"><<a href="mailto:a.reversat@gmail.com" target="_blank">a.reversat@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><br>I was wondering if there is a way to know if we're in debug mode or running in the emulator in QML (something like the #ifdef QT_QML_DEBUG in c++). I'd like to be able to act differently whether the app is running on a real device or not.<span class="HOEnZb"><font color="#888888"><br>
<br>Antoine<br></font></span></div>
<br>_______________________________________________<br>
SailfishOS.org Devel mailing list<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Artem Marchenko<br><a href="http://agilesoftwaredevelopment.com" target="_blank">http://agilesoftwaredevelopment.com</a><br>
<a href="http://twitter.com/AgileArtem" target="_blank">http://twitter.com/AgileArtem</a>
</div>