Re: [SailfishDevel] Swipe lock (contd.)

2014-01-02 Thread Mikko Harju
On 01.01.2014 19:13, Bob Jelica wrote:
 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 page from 
 the stack instead (or peek).

The window flag Qt::WindowOverridesSystemGestures affects only the
gestures triggered close to the edge, ie. close-from-top, peek and
opening events feed. These gestures are detected by the window manager
before any events are sent to your application, and setting the flag
disables the detection.

For (Silica) applications, the PageStack navigation gestures can be
disabled on page-by-page basis by setting
   backNavigation: false
   forwardNavigation: false
in your Page.

-- 
mikko
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Closing an application without killing the main loop

2013-12-12 Thread Mikko Harju
On 11.12.2013 22:51, Ville Ranki wrote:

 I have not found a way to do it in Sailfish. When user closes the
 application, Sailfish terminates the Qt main loop which effectively
 makes it impossible to do any asynchronous tasks.

Have you ran it on the actual device? It might be that the fix did not
make it to the SDK. It should work on the device, however.

 Here is a example application to demonstrate the issue:
 http://talk.maemo.org/attachment.php?attachmentid=33970d=1386249527

WORKSFORME :)

-- 
mikko

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Swipe Lock

2013-12-02 Thread Mikko Harju
On 29.11.2013 21:42, Mariano Boragno wrote:
 Hi guys,
 
 Anyway, this didn't work. I've set the Qt::WindowOverridesSystemGestures
 as Jonni proposed but I can still minimize and close the application
 using the swipe gesture.
 
 This feature is a must in my application. The game is intended to block
 babies from playing around with the phone while getting them
 entertained, so I need a way to block the gestures.

The support for the Qt::WindowOverridesSystemGestures flag was added
after the emulator homescreen version for the sdk was branched. The flag
should work on the device, however.

-- 
Mikko




___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Double-tap detection

2013-11-11 Thread Mikko Harju
On 10.11.2013 12:15, Artem Marchenko wrote:
 Thanks, for the reply, Jonni, now I know about double clicks. Will do
 own detection then.

Hello Artem :)

It seems double clicks are missed if the Flickable pressDelay is
non-zero (and SilicaFlickable has non-zero default pressDelay).

-- 
mikkoh


___
SailfishOS.org Devel mailing list