<div dir="ltr">Hey, have you tried using pageStack.replace() or pageStack.replaceAbove() ? That's what I'm using in my application.<br><br>First time ever answering to these mail lists... so hope i'm not doing something wrong here :)<br><br>-Olpe<br><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 21, 2016 at 8:50 AM <<a href="mailto:devel-request@lists.sailfishos.org">devel-request@lists.sailfishos.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Devel mailing list submissions to<br>
        <a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel" rel="noreferrer" target="_blank">https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:devel-request@lists.sailfishos.org" target="_blank">devel-request@lists.sailfishos.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:devel-owner@lists.sailfishos.org" target="_blank">devel-owner@lists.sailfishos.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Devel digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Resolution-independent in-app icons (Osmo Salomaa)<br>
   2. Re: pageStack navigation (Matthew Vogt)<br>
   3. Re: Resolution-independent in-app icons<br>
      (?????????? ?????? ?????????)<br>
   4. Re: Timeout of MerSDK and the Emulator (Martin Kampas)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 20 Jul 2016 23:27:59 +0300<br>
From: Osmo Salomaa <<a href="mailto:otsaloma@iki.fi" target="_blank">otsaloma@iki.fi</a>><br>
To: <a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a><br>
Subject: [SailfishDevel] Resolution-independent in-app icons<br>
Message-ID: <<a href="mailto:3e5c1670-6b19-6c30-88e1-c019f25bd67c@iki.fi" target="_blank">3e5c1670-6b19-6c30-88e1-c019f25bd67c@iki.fi</a>><br>
Content-Type: text/plain; charset=utf-8; format=flowed<br>
<br>
Hello,<br>
<br>
SFOS has standard sizes for application launcher icons and Silica has<br>
stock icons, whose sizes (I assume) vary by device, but how should I<br>
handle custom in-app icons, e.g. a position icon in a map application,<br>
so that it would look right on different pixel-density screens?<br>
<br>
I tried using a large PNG or SVG and having QML scale that to one of the<br>
Theme.iconSize* constants, but the result of such downscaling is not<br>
smooth, even when using Image's smooth=true. Additionally the QML<br>
documentation says there's a possibly significant performace cost to<br>
smooth scaling. This implies that I'd need different size PNGs on<br>
different devices and show those 1:1 without scaling.<br>
<br>
So, is there some SFOS image resizing script I can run on RPM's<br>
post-install to generate the right size icons from SVGs or large PNGs?<br>
Or should I just roll my own solution that packs in icons of different<br>
sizes and loads the closest match at runtime?<br>
<br>
--<br>
Osmo Salomaa <<a href="mailto:otsaloma@iki.fi" target="_blank">otsaloma@iki.fi</a>><br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 20 Jul 2016 21:37:39 +0000<br>
From: Matthew Vogt <<a href="mailto:matthew.vogt@jolla.com" target="_blank">matthew.vogt@jolla.com</a>><br>
To: Sailfish OS Developers <<a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a>><br>
Subject: Re: [SailfishDevel] pageStack navigation<br>
Message-ID:<br>
        <<a href="mailto:A85A5B205F68764C8A8C58654A9F49FA019103DE@ord2mbx12c.mex05.mlsrvr.com" target="_blank">A85A5B205F68764C8A8C58654A9F49FA019103DE@ord2mbx12c.mex05.mlsrvr.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
The PageStack itself does not report the completion of transitions, but the Page objects involved in the transition see the transition events as changes to their 'status' property:<br>
<a href="https://sailfishos.org/develop/docs/silica/qml-sailfishsilica-sailfish-silica-page.html/#status-prop" rel="noreferrer" target="_blank">https://sailfishos.org/develop/docs/silica/qml-sailfishsilica-sailfish-silica-page.html/#status-prop</a><br>
<br>
When a transition begins, the incoming page status changes to PageStatus.Activating, and the outgoing page status changes to PageStatus.Deactivating.  After the transition completes, their respective statuses become PageStatus.Active and PageStatus.Inactive.<br>
<br>
You can perform actions in response to changes of the Page.status property, knowing that the PageStack transition is no longer active.<br>
<br>
Thanks,<br>
Matt<br>
<br>
________________________________<br>
From: <a href="mailto:devel-bounces@lists.sailfishos.org" target="_blank">devel-bounces@lists.sailfishos.org</a> [<a href="mailto:devel-bounces@lists.sailfishos.org" target="_blank">devel-bounces@lists.sailfishos.org</a>] on behalf of occirol [<a href="mailto:developer@nordan.ch" target="_blank">developer@nordan.ch</a>]<br>
Sent: Thursday, July 21, 2016 5:15 AM<br>
To: Sailfish OS Developers<br>
Subject: Re: [SailfishDevel] pageStack navigation<br>
<br>
@Dylan<br>
According to the doc, there is no function completeTransition for a PageStack object.<br>
<br>
@Oleg<br>
I've something weird with your solution. Goal is reach but the MainPage is empty, as if the app was never started. :/<br>
<br>
If I found a solution I'll let you know. If someone as an idea, welcome ;)<br>
<br>
@+, Fab<br>
<br>
<br>
Le 20. 07. 16 ? 18:37, Oleg Linkin a ?crit :<br>
Why not do the next:<br>
<br>
pageStack.clear()<br>
pageStack.push(MainPage)?<br>
<br>
2016-07-20 19:36 GMT+03:00 Dylan Van Assche <<a href="mailto:dylan.van.assche@protonmail.com" target="_blank">dylan.van.assche@protonmail.com</a><redir.aspx?REF=5UfGJdZjuqfB1yv-ScC_Jl8ln1hC0ANG73GhHb8J_doJuNKC5bDTCAFtYWlsdG86ZHlsYW4udmFuLmFzc2NoZUBwcm90b25tYWlsLmNvbQ..>>:<br>
Hi,<br>
<br>
You should add this:<br>
<br>
if(!pageStack.busy)<br>
{<br>
pageStack.pop()<br>
}<br>
<br>
This will prevent the issue but it will give you another bug: only one page will be popped.<br>
<br>
You can fix it like this:<br>
<br>
<br>
if(!pageStack.busy)<br>
{<br>
pageStack.pop()<br>
pageStack.completeTransition() // This will pop the page directly.<br>
}<br>
<br>
-------- Original Message --------<br>
Subject: [SailfishDevel] pageStack navigation<br>
Local Time: July 20, 2016 6:02 PM<br>
UTC Time: July 20, 2016 4:02 PM<br>
From: <a href="mailto:developer@nordan.ch" target="_blank">developer@nordan.ch</a><redir.aspx?REF=pWRC7fgoRnOnLMp5PpvXAXQhNjiRykk-V_o1O0-w0NQJuNKC5bDTCAFtYWlsdG86ZGV2ZWxvcGVyQG5vcmRhbi5jaA..><br>
To: <a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a><redir.aspx?REF=eBLTWFeh7MMSxFSKmc9AeGHy9zj7NGQg6imd4kxByF4JuNKC5bDTCAFtYWlsdG86ZGV2ZWxAbGlzdHMuc2FpbGZpc2hvcy5vcmc.><br>
<br>
<br>
<br>
Hello everybody !<br>
<br>
I can't figure out how to go back to the main page of an app and clear the stack of pages. Let me explain:<br>
<br>
I've a main page, by selecting a menu entry push a page (lets call it page1). On this page1, calling a certain action, push another page (call it page2, it is a dialog page) on the stack.<br>
<br>
So in the stack, I have the following pages:  [MainPage, Page1, Page2]<br>
<br>
But now, from page2, I want to go back to MainPage. So I did this first in the page2 code :<br>
<br>
   onAccepted: {<br>
        pageStack.pop()<br>
    }<br>
<br>
But:<br>
<br>
<br>
Warning: cannot pop while transition is in progress<br>
<br>
Ok, so I tried this instead:<br>
<br>
acceptDestination: Qt.resolvedUrl("MainPage.qml") acceptDestinationAction: PageStackAction.Pop<br>
<br>
Still: Warning: cannot pop while transition is in progress<br>
<br>
And doing this:<br>
<br>
   onAccepted: {         pageStack.pop(null, false)     }<br>
<br>
Is working in term of results, but before going to the main page I see the page2 for a little while.<br>
<br>
So, I should miss something here for sure. Any ideas or recommendation ? Maybe am I bad designing the navigation in the app ?<br>
<br>
Thanks a lot !<br>
<br>
Regards,<br>
<br>
Fab<br>
<br>
<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a><redir.aspx?REF=NK_0t54EQ2um-GsqRVRTvrVjKvqQxYRZQuX1UA5Txy4JuNKC5bDTCAFtYWlsdG86ZGV2ZWwtdW5zdWJzY3JpYmVAbGlzdHMuc2FpbGZpc2hvcy5vcmc.><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a><redir.aspx?REF=NK_0t54EQ2um-GsqRVRTvrVjKvqQxYRZQuX1UA5Txy4JuNKC5bDTCAFtYWlsdG86ZGV2ZWwtdW5zdWJzY3JpYmVAbGlzdHMuc2FpbGZpc2hvcy5vcmc.><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://lists.sailfishos.org/pipermail/devel/attachments/20160720/03f73042/attachment-0001.html" rel="noreferrer" target="_blank">https://lists.sailfishos.org/pipermail/devel/attachments/20160720/03f73042/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 21 Jul 2016 10:47:05 +0600<br>
From: ?????????? ?????? ????????? <<a href="mailto:coderusinbox@gmail.com" target="_blank">coderusinbox@gmail.com</a>><br>
To: <a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a><br>
Subject: Re: [SailfishDevel] Resolution-independent in-app icons<br>
Message-ID: <<a href="mailto:94e3ac96-7396-a05d-fcd9-e0a1949429e1@gmail.com" target="_blank">94e3ac96-7396-a05d-fcd9-e0a1949429e1@gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
Prefer using svg images. Carrying multiple sizes png images is so 2000.<br>
<br>
<br>
21.07.2016 02:27, Osmo Salomaa ?????:<br>
> Hello,<br>
><br>
> SFOS has standard sizes for application launcher icons and Silica has<br>
> stock icons, whose sizes (I assume) vary by device, but how should I<br>
> handle custom in-app icons, e.g. a position icon in a map application,<br>
> so that it would look right on different pixel-density screens?<br>
><br>
> I tried using a large PNG or SVG and having QML scale that to one of<br>
> the Theme.iconSize* constants, but the result of such downscaling is<br>
> not smooth, even when using Image's smooth=true. Additionally the QML<br>
> documentation says there's a possibly significant performace cost to<br>
> smooth scaling. This implies that I'd need different size PNGs on<br>
> different devices and show those 1:1 without scaling.<br>
><br>
> So, is there some SFOS image resizing script I can run on RPM's<br>
> post-install to generate the right size icons from SVGs or large PNGs?<br>
> Or should I just roll my own solution that packs in icons of different<br>
> sizes and loads the closest match at runtime?<br>
><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 21 Jul 2016 05:50:05 +0000<br>
From: Martin Kampas <<a href="mailto:martin.kampas@jolla.com" target="_blank">martin.kampas@jolla.com</a>><br>
To: Marcin Mielniczuk <<a href="mailto:marmistrzmar@gmail.com" target="_blank">marmistrzmar@gmail.com</a>><br>
Cc: Sailfish OS Developers <<a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a>><br>
Subject: Re: [SailfishDevel] Timeout of MerSDK and the Emulator<br>
Message-ID:<br>
        <<a href="mailto:597ECB6BFD23CC488EED8B6CD7566AD232F11068@ORD2MBX01B.mex05.mlsrvr.com" target="_blank">597ECB6BFD23CC488EED8B6CD7566AD232F11068@ORD2MBX01B.mex05.mlsrvr.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi Marcin,<br>
<br>
failed.log, statefs.log: both failing statefs and tmpfiles are known issues and shouldn't be related to this.<br>
<br>
sshd.log: according to the log you mistyped "sshd" as "ssh", but anyway "sshd.service" is not used, instead you should check the status of "sshd.socket". Also note that the config is "/etc/ssh/sshd_config_engine".<br>
<br>
If the output of `journalctl _COMM=sshd -b` was empty after trying to log in via SSH even with verbosity increased, then my suspicion falls on host/virtualbox.<br>
<br>
You could also verify with tcpdump that it did not reach the guest (install with `zypper in tcpdump`, run as `tcpdump -n port ssh` inside the MerSDK VM). And on host you can check that the ports are really occupied by virtualbox with `sudo ss -tpln |grep ':222[23]\>'`.<br>
<br>
I am also using Arch Linux as you (last full system upgrade on 2016-06-28) and it works well. Did you try reboot? :)<br>
<br>
BR,<br>
Martin<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://lists.sailfishos.org/pipermail/devel/attachments/20160721/b890c950/attachment.html" rel="noreferrer" target="_blank">https://lists.sailfishos.org/pipermail/devel/attachments/20160721/b890c950/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.sailfishos.org" target="_blank">Devel@lists.sailfishos.org</a><br>
<a href="https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel" rel="noreferrer" target="_blank">https://lists.sailfishos.org/cgi-bin/mailman/listinfo/devel</a><br>
<br>
End of Devel Digest, Vol 27, Issue 16<br>
*************************************<br>
</blockquote></div></div>