Re: [SailfishDevel] Counter or timer

2015-06-23 Thread Bob Jelica
Here’s some simple code (check docs for Timer) Timer { id: myTimer interval: 1000 onTriggered: doSomethingWithALabel() } //bob > On 23 Jun 2015, at 15:24, mariusz sapinski wrote: > > Hi all, > > this must be a trivial question to most of you but I would like

Re: [SailfishDevel] Versions

2014-07-20 Thread Bob Jelica
Hey, If you have this in your .yaml: Version: 1.0.0 QMakeOptions: - VERSION='%{version}-%{release}' Then you can do this in your .pro file: DEFINES += APP_VERSION=\\\"$$VERSION\\\" That gives you the option to do this in your main.cpp: QScopedPointer view(SailfishApp::createView()); view->root

Re: [SailfishDevel] Cannot open projects after updating SDK

2014-06-26 Thread Bob Jelica
Try this: open your project in QTC, select ”Projects” in the left sidebar, add kits you need. //bob On 26 Jun 2014, at 22:51, Matthias Barmeier wrote: > Hi, > > deleting the folder does not help :( > > The result is the same, when I try to open a project that worked fine before > the SDK up

Re: [SailfishDevel] Disabling navigation gestures

2014-01-13 Thread Bob Jelica
Hey, I’m fighting with the same problem. Only way, at least that I’ve found thus far, is to use backNavigation/forwardNavigation properties and then ”faking” the navigation buttons in top-left corner with a switch and a label :) //bob On 14 Jan 2014, at 03:42, Antoine Reversat wrote: > Hi, >

Re: [SailfishDevel] qml PositionSource element gives error: QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'

2014-01-12 Thread Bob Jelica
I get the same error/warning in my app, without it affecting the app. At least not enough for me to dig into the error. I still get the GPS fix, location etc, so my app is usable. Would love to find out if it’s a real problem or just a ”ghost” problem, but thus far it seems like it’s not going t

[SailfishDevel] Swipe lock (contd.)

2014-01-01 Thread Bob Jelica
Continuing on the thread here: https://lists.sailfishos.org/pipermail/devel/2013-November/001517.html Swipe lock using flags as per the thread above doesn’t work, neither emu nor the device. Any other suggestions I could try? I have a map in my sub-page and trying to pan the map will pop the pa

Re: [SailfishDevel] How to activate GPS on device

2014-01-01 Thread Bob Jelica
In QML you should use PositionSource element. Check it’s ”start()” and ”stop()” methods. //bob On 01 Jan 2014, at 01:05, Caliste Damien wrote: > Hello, > > Now that I received my device, I can test Mæp for real. That's great. > > It's an app that uses the GPS. If Jolla's map app is runni

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Bob Jelica
That’s just a warning, I have it as well, but never had problems nor time to investigate further. //bob On 29 Dec 2013, at 21:48, Franck Routier (perso) wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I am trying to use the QSettings wrapper, as prop

Re: [SailfishDevel] QtLocation/Positioning Simulator plugin on Emulator

2013-12-29 Thread Bob Jelica
You could try feeding the PositionSource with an nmeaSource (pre-defined route etc.) in the meantime. I agree tho, a way to simulate positions and stuff like that in the emulator would be really helpful. //bob On 29 dec 2013, at 17:36, christopher.l...@thurweb.ch wrote: > Hi All > > In a thr

Re: [SailfishDevel] How to handle app settings?

2013-12-29 Thread Bob Jelica
See my previous mail. I use that in QML all the time. I guess it’s up to you, as an app developer, to decide what fits your app. In spirit with agile software development, I start of with the easies possible solution, with as little friction as possible and take it from there. The QSettings (wit

Re: [SailfishDevel] How to handle app settings?

2013-12-28 Thread Bob Jelica
I use a QML-enabled QSettings wrapper created by Nokia at some point. Here’s the download link: https://dl.dropboxusercontent.com/u/10015284/qml_settings/settings.cpp and https://dl.dropboxusercontent.com/u/10015284/qml_settings/settings.h Put those into your project, then register it in your mai

Re: [SailfishDevel] [Update] Changelog for SailfishOS update 2 (1.0.2.5)

2013-12-27 Thread Bob Jelica
Great work everyone! Keep them updates coming, and we’ll keep the apps coming ;) //bob On 27 Dec 2013, at 14:00, Bernd Wachter wrote: > > Hi all, > > we're releasing update2 today. The changelog can be found (and commented > on) here: > > https://together.jolla.com/question/3612/release-not

Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-12-24 Thread Bob Jelica
Hey, Thx! :D I have the same issue with the map in my app, it’s popping the page from the stack when scrolling. I’m just about to try it on the actual phone (which I received yesterday, yay!) to see how it behaves there…I’ll get back to you with the results. About the pinch actions: I haven’t

Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-12-22 Thread Bob Jelica
Chris: you’re very welcome to re-publish the tutorial on your page, since it’s becoming a defacto standard page for awesome tutorials/info about Sailfish. I’ll clean the docs a bit more in the coming days, so it’s more noob-friendly. //bob On 20 Dec 2013, at 09:20, christopher.l...@thurweb.ch wr

Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-12-22 Thread Bob Jelica
Hi, I’m not quite finished with the tutorial, but since you seem to be in dire need of instructions, here goes: https://github.com/b0bben/SailfishOS_MapTutorial App works, docs are work-in-progress. Holla at me if you’re having trouble with anything. //bob On 22 Dec 2013, at 23:11, Sylvain B.

Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-12-19 Thread Bob Jelica
I have an example project showing a map and a location. Will try publishing it online later tonight/tomorrow so you guys don’t have to walk to Mordor and back like I did to get it working ;) //bob On 19 Dec 2013, at 14:45, Sthocs wrote: > tw_bolek writes: > >> >>> Bolek, have you got it w

Re: [SailfishDevel] file permissions of user data files

2013-08-12 Thread Bob Jelica
Hey, Use QDir.homePath() in your app for a safe place to save files. That will always guarantee that you'll have read/write access. Have fun! //Bob On Aug 11, 2013, at 1:55 PM, Wim de Vries wrote: > On 08/11/2013 01:36 PM, "Thomas B. Rücker" wrote: >> On 08/11/2013 12:21 PM, Wim de Vries wro

[SailfishDevel] QTLocation not part of QT5, what to do?

2013-08-03 Thread Mario Bob Jelica
Hi all, Seeing how the QTLocation is being (heavily) refactored right now, and not part of QT5 at this time, what are all of us who are doing location-aware apps to do? I haven't seen any timeframe for when QTLocation will be a part of QT5 proper, add to that time needed for it to reach Sailfish

[SailfishDevel] Panning a map element without breaking os-wide gestures

2013-07-21 Thread Mario Bob Jelica
Hi all, In my app i'm using a map in the details view. I'm having problems panning the map since panning will actually trigger the back-gesture in the OS. I'm looking for any pointers in how to solve this for users in a good way, UX-wise. Here's a screenshot of the view in question: https://dl