Re: [SailfishDevel] Inhibit PageStack back gestures on Map widget
Hi, Bug reported here: https://bugreports.qt-project.org/browse/QTBUG-36919 Cheers, Antoine - Mail original - De: Aaron McCarthy aaron.mccar...@jolla.com À: devel@lists.sailfishos.org Envoyé: Lundi 17 Février 2014 05:33:19 Objet: Re: [SailfishDevel] Inhibit PageStack back gestures on Map widget Hi, On Sun, 16 Feb 2014 18:29:55 Tigre-Bleu wrote: I have a Pagestack where a page is displaying a map with QtLocation Map {} element. I can pan the map to the top/bottom/right but if I try to pan to the left, the OS thinks it is a swipe back and pop the page out. I would expect that the Map {} element intercepts all mouse events when gesture.enabled = true but it appears that it is not the case. This looks like a bug in the Qt Location Map type. It should be calling QQuickItem::setKeepMouseGrab() once a gesture is detected to prevent any input event filters defined in parent items (such as the PageStack) from getting those events. Can you create a bug in the Qt bug tracker: http://bugreports.qt-project.org/ How is it possible to inhibit this behaviour on the map widget, and to keep the behaviour on the rest of the Page? I guess I'm not the first one to have this question but I cannot find any example. Perhaps you are :) The Jolla Sailfish Maps application requires the user to switch to split view before moving back through the page stack. This essentially bypasses this issue. Cheers, -- Aaron McCarthy ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] Inhibit PageStack back gestures on Map widget
Hi, I have a Pagestack where a page is displaying a map with QtLocation Map {} element. I can pan the map to the top/bottom/right but if I try to pan to the left, the OS thinks it is a swipe back and pop the page out. I would expect that the Map {} element intercepts all mouse events when gesture.enabled = true but it appears that it is not the case. How is it possible to inhibit this behaviour on the map widget, and to keep the behaviour on the rest of the Page? I guess I'm not the first one to have this question but I cannot find any example. Thanks, Antoine ___ SailfishOS.org Devel mailing list
[SailfishDevel] Silica issue on coverpage: Opacity value is ignored in CoverBackground if a label is truncated with fading
Hi guys, If in a cover, a label is truncated with truncationMode: TruncationMode.Fade then the opacity value is ignored. For code example and screenshot, see the following bug report: https://github.com/Buschtrommel/ocNews/issues/27#issuecomment-34267086 I think it is an issue with Silica component. I would expect opacity to be taken into account and the fading to opacity=0 still applied at the truncation location. Regards, Antoine ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] .ico : Unsupported image format
Hi Jonni, Actually yes, adding qt5-plugin-imageformat-ico to the yaml and reinstalling my package solves the problem. Thanks! - Mail original - De: Jonni Rainisto jonni.raini...@jolla.com À: Sailfish OS Developers devel@lists.sailfishos.org Envoyé: Lundi 25 Novembre 2013 08:11:32 Objet: Re: [SailfishDevel] .ico : Unsupported image format Have you tried adding following line in your yaml/spec?: Requires: qt5-plugin-imageformat-ico From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Tigre-Bleu [de...@tigre-bleu.net] Sent: Sunday, November 24, 2013 5:59 PM To: Sailfish OS Developers Subject: [SailfishDevel] .ico : Unsupported image format Hi sailors, I've just realized that .ico is not supported by QtQuick Image {} QML Component QML Image: Error decoding: http://www.jollatides.com/favicon.ico: Unsupported image format I'm surprised as I was assuming that ico files shall be displayed as it is a defacto icon standard. Is there another way to display a .ico in QML? Thanks, Antoine ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] .ico : Unsupported image format
Hi sailors, I've just realized that .ico is not supported by QtQuick Image {} QML Component QML Image: Error decoding: http://www.jollatides.com/favicon.ico: Unsupported image format I'm surprised as I was assuming that ico files shall be displayed as it is a defacto icon standard. Is there another way to display a .ico in QML? Thanks, Antoine ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Dynamically populate a ContextMenu
Hi Andrey, I wonder why those properties are not documented in the list of all members of ContextMenu: https://sailfishos.org/sailfish-silica/qml-sailfishsilica-contextmenu-members.html Anyway, using menu._contentColumn solved my problem. Thanks for the help. Antoine - Mail original - De: Andrey Kozhevnikov coderusin...@gmail.com À: christopher lamb christopher.l...@thurweb.ch, Sailfish OS Developers devel@lists.sailfishos.org Envoyé: Samedi 23 Novembre 2013 16:08:30 Objet: Re: [SailfishDevel] Dynamically populate a ContextMenu You should use it if you want real dynamically created components. Or reimplement ContextMenu item. What would you prefer? On 23.11.2013 21:06, christopher.l...@thurweb.ch wrote: Hi Andrey Zitat von Andrey Kozhevnikov coderusin...@gmail.com: you may need to make childs of menu._contentColumn, not just menu. I thought that the underscore stuff are private internal properties / functions that we mere mortals should not be using 8-) (Not that that would necessarily stop me). Chris ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] ListModel sorting in QML
Ok, thanks I will create my own model with sorting capabilities Antoine - Mail original - De: Andrey Kozhevnikov coderusin...@gmail.com À: devel@lists.sailfishos.org Envoyé: Dimanche 17 Novembre 2013 14:05:39 Objet: Re: [SailfishDevel] ListModel sorting in QML afaik the use of JSONListModel not intended the sorting functions. you need to make own model and sort json data before pushing it to model. On 17.11.2013 18:39, Tigre-Bleu wrote: Hi, I have a ListView which loads a model from JSON with JSONListModel. The model contains items and category ids, but is not sorted by category. What I wand to do is to display the items sorted by categories in the ListView. I have put a section.property in the ListView but it is working only half as expected because it is not sorting the model. For instance, if my model content is: Item1 - Category1 Item2 - Category1 Item3 - Category2 Item4 - Category3 Item5 - Category3 Item6 - Category1 Then my ListView will display: Category1 Item1 Item2 Category2 Item3 Category3 Item4 Item5 Category1 Item6 Of course I would like Item6 to be set between Item2 and Item3. How is possible to do that in QML? I would like to avoid manually iterating on all the items to re-order. Thanks, Antoine ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Account management
Hi Jonni, nemo-qml-plugin-accounts-qt5 looks like what I'm looking for, but I have a hard time trying to figure out how it's working because I can't find a lot of documentation/examples. If I understand correctly and correlates to what I've read about accounts-ui for harmattan, it is only needed to put a service/provider xml file to the right path in the file system. Am I correct? If yes then I can't find the right path to put the files on the emulator. According to the tests on github ( https://github.com/nemomobile/nemo-qml-plugin-accounts/blob/master/tests/tests.pro ) the files shall be in /usr/share/accounts/services /usr/share/accounts/providers However those files do not exist on the emulator and there is no app to add accounts also in the app menu of the emulator. Is this a limitation of the emulator or is there some package to install on the simulator that I didn't find? Thanks, Antoine - Mail original - De: Jonni Rainisto jonni.raini...@jolla.com À: Sailfish OS Developers devel@lists.sailfishos.org Envoyé: Mardi 12 Novembre 2013 21:48:59 Objet: Re: [SailfishDevel] Account management You might want to look into libaccounts-glib, nemo-qml-plugin-accounts-qt5 and libaccounts-qt5 Anyways you might want to do zypper se accounts inside emulator to see all the packages that are avail. re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Tigre-Bleu [de...@tigre-bleu.net] Sent: Tuesday, November 12, 2013 10:16 PM To: devel@lists.sailfishos.org Subject: [SailfishDevel] Account management Hi, Is there in SailFish the same mechanism as in Harmattan to hold various services user accounts in a single location? (My hope: yes!) If yes is it working in the same way as in harmattan and is it possible to test it with the emulator? Thanks, Antoine ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Account management
Ok, thanks for the info. I will then just wait for the Sailfish accounts control implementation details and implement everything in the app for the moment. Antoine - Mail original - De: Robin Burchell robin+me...@viroteck.net À: Sailfish OS Developers devel@lists.sailfishos.org Envoyé: Mercredi 13 Novembre 2013 23:41:48 Objet: Re: [SailfishDevel] Account management Hi, On Wed, Nov 13, 2013 at 9:26 PM, Tigre-Bleu de...@tigre-bleu.net wrote: Hi Jonni, nemo-qml-plugin-accounts-qt5 looks like what I'm looking for, but I have a hard time trying to figure out how it's working because I can't find a lot of documentation/examples. You most likely don't want that. It was an earlier evolution of things, and is not currently used on Sailfish. There is some stuff related to sharing/accounts that is not yet released at this time, and we will not be providing a public API for this initially. If I understand correctly and correlates to what I've read about accounts-ui for harmattan, it is only needed to put a service/provider xml file to the right path in the file system. Am I correct? If yes then I can't find the right path to put the files on the emulator. According to the tests on github ( https://github.com/nemomobile/nemo-qml-plugin-accounts/blob/master/tests/tests.pro ) the files shall be in /usr/share/accounts/services /usr/share/accounts/providers You will want services/provides files, and a UI to create accounts with if you want to look at hacking around on your device. Unfortunately, we aren't yet ready to promise forward compatibility for the sharing/accounts framework, so this is something that would not be accepted in the store at this time. However those files do not exist on the emulator and there is no app to add accounts also in the app menu of the emulator. Is this a limitation of the emulator or is there some package to install on the simulator that I didn't find? Accounts control is handled in the settings application, which is not included in emulator images at this time. BR, Robin ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] Account management
Hi, Is there in SailFish the same mechanism as in Harmattan to hold various services user accounts in a single location? (My hope: yes!) If yes is it working in the same way as in harmattan and is it possible to test it with the emulator? Thanks, Antoine ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Ignoring auto signed SSL certificates
Hi Gianni I agree that accepting the auto-signed certificate without prompt would be a potential security breach. However, I think there should be a dialog automatically opened by the OS asking the user what to do (or at least delegate the dialog implementation to the app itself). I am developping a sailfish app that is connected to an owncloud instance. Most of the time, the average geek (including me :) ) is using auto-signed ssl certificate. I don't want to force the user to use http where https could be used. I don't know C++ so I'm not really ready to play with QNetwork. Maybe I'll find something on the internet... Regards, Antoine -- Tigre-Bleu mail/jabber: antoine.vac...@tigre-bleu.net - Mail original - De: Gianni Vialetto gia...@rootcube.net À: Sailfish OS Developers devel@lists.sailfishos.org Envoyé: Samedi 9 Novembre 2013 12:25:54 Objet: Re: [SailfishDevel] Ignoring auto signed SSL certificates On Fri, Nov 8, 2013 at 7:26 PM, Tigre-Bleu de...@tigre-bleu.net wrote: Hello, The open() function of XMLHttpRequest seems to not work with auto signed ssl certificates. I have checked with valid certificates and there is no problem. Is this the expected behavior? If so how am I supposed to fetch some data from an auto signed https page using QML? Thanks, Antoine Hi Antoine, I cannot confirm it without diving into the implementation, but i believe the behavior of XHR you are seeing is reasonable from a security point of view - the alternative could be to prompt the user for confirmation. As an alternative you could construct the connection with QNetwork classes from the C++ side (the QSslConfiguration class should have a method to add a new CA to the list of those accepted). Regards, -- Gianni Vialetto ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Ignoring auto signed SSL certificates
If there is a cleaner way to prompt the user in the future, I will change the code but in the meantime it will do the job. Thanks, Antoine - Mail original - De: Jonni Rainisto jonni.raini...@jolla.com À: Sailfish OS Developers devel@lists.sailfishos.org Envoyé: Samedi 9 Novembre 2013 19:31:40 Objet: Re: [SailfishDevel] Ignoring auto signed SSL certificates Hi, If you dont care about chain of trust in self signed ssl certs, you can just add following in your application. That way all ssl certs are always accepted. Add these includes to main.cpp #include QSslConfiguration #include QSslSocket Add these lines in beginning of your main() QSslConfiguration config = QSslConfiguration::defaultConfiguration(); config.setPeerVerifyMode(QSslSocket::VerifyNone); QSslConfiguration::setDefaultConfiguration(config); re, Jonni From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Tigre-Bleu [de...@tigre-bleu.net] Sent: Saturday, November 09, 2013 7:56 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] Ignoring auto signed SSL certificates Hi Gianni I agree that accepting the auto-signed certificate without prompt would be a potential security breach. However, I think there should be a dialog automatically opened by the OS asking the user what to do (or at least delegate the dialog implementation to the app itself). I am developping a sailfish app that is connected to an owncloud instance. Most of the time, the average geek (including me :) ) is using auto-signed ssl certificate. I don't want to force the user to use http where https could be used. I don't know C++ so I'm not really ready to play with QNetwork. Maybe I'll find something on the internet... Regards, Antoine -- Tigre-Bleu mail/jabber: antoine.vac...@tigre-bleu.net - Mail original - De: Gianni Vialetto gia...@rootcube.net À: Sailfish OS Developers devel@lists.sailfishos.org Envoyé: Samedi 9 Novembre 2013 12:25:54 Objet: Re: [SailfishDevel] Ignoring auto signed SSL certificates On Fri, Nov 8, 2013 at 7:26 PM, Tigre-Bleu de...@tigre-bleu.net wrote: Hello, The open() function of XMLHttpRequest seems to not work with auto signed ssl certificates. I have checked with valid certificates and there is no problem. Is this the expected behavior? If so how am I supposed to fetch some data from an auto signed https page using QML? Thanks, Antoine Hi Antoine, I cannot confirm it without diving into the implementation, but i believe the behavior of XHR you are seeing is reasonable from a security point of view - the alternative could be to prompt the user for confirmation. As an alternative you could construct the connection with QNetwork classes from the C++ side (the QSslConfiguration class should have a method to add a new CA to the list of those accepted). Regards, -- Gianni Vialetto ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Ignoring auto signed SSL certificates
I'm working (on my spare time) on a News application using the News API: https://github.com/owncloud/news/wiki/API-1.2 Very early work but the goal of the 1st version is to have a functionnal read-only app (adding feeds, starring, etc... would be nice but later) I'm not giving any date (as usual :) ) but I can already say that it will probably not be published before the jolla phone release to France at the earliest because I will need some testing on real hardware. Regards, Antoine - Mail original - De: kher...@khertan.net À: Sailfish OS Developers devel@lists.sailfishos.org Envoyé: Samedi 9 Novembre 2013 19:51:45 Objet: Re: [SailfishDevel] Ignoring auto signed SSL certificates Hi, I m just curious, which type of apps connected to ownCloud are you cooking ? I didn't have such problem with ownNotes and self signed certificate, but the https requests are made with python, so that's will not help you. Regards -- Benoît HERVIER - http://khertan.netLe 09/11/13 18:56 Tigre-Bleu a écrit : Hi Gianni I agree that accepting the auto-signed certificate without prompt would be a potential security breach. However, I think there should be a dialog automatically opened by the OS asking the user what to do (or at least delegate the dialog implementation to the app itself). I am developping a sailfish app that is connected to an owncloud instance. Most of the time, the average geek (including me :) ) is using auto-signed ssl certificate. I don't want to force the user to use http where https could be used. I don't know C++ so I'm not really ready to play with QNetwork. Maybe I'll find something on the internet... Regards, Antoine -- Tigre-Bleu mail/jabber: antoine.vac...@tigre-bleu.net De: Gianni Vialetto gia...@rootcube.net À: Sailfish OS Developers devel@lists.sailfishos.org Envoyé: Samedi 9 Novembre 2013 12:25:54 Objet: Re: [SailfishDevel] Ignoring auto signed SSL certificates On Fri, Nov 8, 2013 at 7:26 PM, Tigre-Bleu de...@tigre-bleu.netwrote: Hello, The open() function of XMLHttpRequest seems to not work with auto signed ssl certificates. I have checked with valid certificates and there is no problem. Is this the expected behavior? If so how am I supposed to fetch some data from an auto signed https page using QML? Thanks, Antoine Hi Antoine, I cannot confirm it without diving into the implementation, but i believe the behavior of XHR you are seeing is reasonable from a security point of view - the alternative could be to prompt the user for confirmation. As an alternative you could construct the connection with QNetwork classes from the C++ side (the QSslConfiguration class should have a method to add a new CA to the list of those accepted). Regards,-- Gianni Vialetto ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] Link in Text component
Hello, If a link is displayed in a Text component with html, it is displayed underlined with an ugly blue from the old internet ages... I think there is room for improvement to better fit the silica theme :) Unless of course I missed something... Regards, Antoine ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Ignoring auto signed SSL certificates
Hi, I know all the attention is going to the Jolla Harbour but do you have any idea for me ;) Thanks, Antoine -- Tigre-Bleu mail/jabber: antoine.vac...@tigre-bleu.net - Mail original - De: Tigre-Bleu de...@tigre-bleu.net À: devel@lists.sailfishos.org Envoyé: Mercredi 6 Novembre 2013 00:00:52 Objet: [SailfishDevel] Ignoring auto signed SSL certificates Hello, The open() function of XMLHttpRequest seems to not work with auto signed ssl certificates. I have checked with valid certificates and there is no problem. Is this the expected behavior? If so how am I supposed to fetch some data from an auto signed https page using QML? Thanks, Antoine ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] Ignoring auto signed SSL certificates
Hello, The open() function of XMLHttpRequest seems to not work with auto signed ssl certificates. I have checked with valid certificates and there is no problem. Is this the expected behavior? If so how am I supposed to fetch some data from an auto signed https page using QML? Thanks, Antoine ___ SailfishOS.org Devel mailing list