<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Matt,<br>
Thanks.<br>
On 08/15/2013 12:09 PM, Matthew Vogt wrote:<br>
</div>
<blockquote
cite="mid:A85A5B205F68764C8A8C58654A9F49FAE1102D@ord2mbx12c.mex05.mlsrvr.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style id="owaParaStyle" type="text/css"></style>The simplest
thing to do, is to wait for the page under your dialog to be
re-activated - when the page status is 'PageStaus.Active' again,
then you know that the pop transition has finished and you can
issue a new page stack change.<br>
</blockquote>
Yes, I'll do this one. Only have keep track from where it came when
it is activated.<br>
<br>
<blockquote
cite="mid:A85A5B205F68764C8A8C58654A9F49FAE1102D@ord2mbx12c.mex05.mlsrvr.com"
type="cite">
<div style="direction: ltr;font-family: Tahoma;color:
#000000;font-size: 10pt;">
<br>
However, what you should probably do in this case, is verify
that the dialog content is valid before you let the user accept
the Dialog. You can prevent the dialog being accepetd by
binding an expression which evaluates to false to the
'canAccept' property of the Dialog. When you detect that the
user has entered a name which already exists, you can show a
TextSwitch for the user to confirm that they wish to overwrite
the existing file. When you're happy that the choice is
intentional, make the 'canAccept' expression evaluate to true.<br>
</div>
</blockquote>
Dont want to fire c++ validation for every key action.<br>
Tried 'canAccept : false' at start, but couldn't find a trigger to
intercept usr action to validate and then accept() or reject().<br>
<br>
<br>
<blockquote
cite="mid:A85A5B205F68764C8A8C58654A9F49FAE1102D@ord2mbx12c.mex05.mlsrvr.com"
type="cite">
<div style="direction: ltr;font-family: Tahoma;color:
#000000;font-size: 10pt;">
<br>
You may also like to look at the text field examples in the
component gallery, which demonstrate how to visually indicate
that the content of a field is not currently in a valid state.<br>
</div>
</blockquote>
I did. <br>
BTW: they don't work (anymore):<br>
<meta name="qrichtext" content="1">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><span
style=" font-family:'Monospace'; font-size:11pt; color:#be1414;">bash:
/opt/sdk/componentgallery/usr/bin/silicacomponentgallery-example:
No such file or directory</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-family:'Monospace'; font-size:11pt;
font-weight:600; color:#be1414;">Remote application finished
with exit code 127.</span><!--EndFragment--></p>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
<br>
<blockquote
cite="mid:A85A5B205F68764C8A8C58654A9F49FAE1102D@ord2mbx12c.mex05.mlsrvr.com"
type="cite">
<div style="direction: ltr;font-family: Tahoma;color:
#000000;font-size: 10pt;">
<br>
Thanks,<br>
Matt<br>
<br>
<div style="font-family: Times New Roman; color: #000000;
font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF533086"><font
face="Tahoma" color="#000000" size="2"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:devel-bounces@lists.sailfishos.org">devel-bounces@lists.sailfishos.org</a>
[<a class="moz-txt-link-abbreviated" href="mailto:devel-bounces@lists.sailfishos.org">devel-bounces@lists.sailfishos.org</a>] on behalf of Wim de
Vries [<a class="moz-txt-link-abbreviated" href="mailto:wsvries@xs4all.nl">wsvries@xs4all.nl</a>]<br>
<b>Sent:</b> Thursday, August 15, 2013 7:21 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:devel@lists.sailfishos.org">devel@lists.sailfishos.org</a><br>
<b>Subject:</b> [SailfishDevel] yet another pop problem
(Dialog)<br>
</font><br>
</div>
<div>I am sorry, but some things that are so simple in
QtWidgets do become quite complex in Sailfish-QML.<br>
case:<br>
textedit->save-as(menu)<br>
push Dailog (usr inputs filename) <br>
C++ evaluates filename: file already exists!<br>
<br>
now I want push a "overwrite?" Dialog.<br>
But any of the PageStack actions causes "<span
style="font-size:11pt">Warning: cannot pop while
transition is in progress".</span><br>
The problem here is that the Dialog is always popped by the
user. So pagestack goes in transition and I cannot do
anything on the pagestack (immediately) after that.<br>
Thanks.<br>
<br>
<span style="font-size:11pt"></span>
<p style="margin-top:0px; margin-bottom:0px;
margin-left:0px; margin-right:0px; text-indent:0px">
</p>
<style type="text/css">
<!--
p, li
{white-space:pre-}
-->
BODY {direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;}P {margin-top:0;margin-bottom:0;}BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}</style><br>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>