Re: [SailfishDevel] Detecting if running in emulator/debug mode in QML

2014-01-18 Thread christopher . lamb
Hi Antoine Your point is valid, in the old days of the N9 Simulator I was able to write code to detect the simulator vs real device. But should it be necessary? Why should we need to detect a difference between an Emulator / Simulator, and a real device? Probably because of weaknesses in

Re: [SailfishDevel] Detecting if running in emulator/debug mode in QML

2014-01-18 Thread Artem Marchenko
You can propagate C++ knowledge to QML, Antoine For example setContextProperty #ifdef QT_QML_DEBUG Best regards, Artem. On Sun, Jan 12, 2014 at 1:41 PM, Antoine Reversat wrote: > Hi, > > I was wondering if there is a way to know if we're in debug mode or > running in the emulator in QML (some

[SailfishDevel] Detecting if running in emulator/debug mode in QML

2014-01-12 Thread Antoine Reversat
Hi, 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. Antoine __