<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Thanks for an answer, works perfectly!</p>
<p>If you want to have e.g. cover actions on the top of the
background view in cover it seems to be a little bit more
complicated. One example of that seems to be in the app
sailfish-maps. The example code can be explored in the folder
/usr/share/sailfish-maps/cover.<br>
</p>
<p>Best regards Riku<br>
</p>
<br>
<div class="moz-cite-prefix">02.12.2016, 10:50, Kimmo Lindholm
kirjoitti:<br>
</div>
<blockquote
cite="mid:DB6PR0701MB234175ED71E2E7E25103B757FA8E0@DB6PR0701MB2341.eurprd07.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"
lang="EN-US">cover: null<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm
0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> Devel
[<a class="moz-txt-link-freetext" href="mailto:devel-bounces@lists.sailfishos.org">mailto:devel-bounces@lists.sailfishos.org</a>]
<b>On Behalf Of </b>joao morgado<br>
<b>Sent:</b> 2. joulukuuta 2016 4:05<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] How to make cover
display the firstPage scaled<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div id="yui_3_16_0_ym19_1_1480640847245_17997">
<p class="MsoNormal" style="background:white"><span
style="font-family:"Helvetica",sans-serif;color:black">Hi
sailors<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1480640847245_17997">
<p class="MsoNormal" style="background:white"><span
style="font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1480640847245_17997">
<p class="MsoNormal" style="background:white"><span
style="font-family:"Helvetica",sans-serif;color:black">My
app UI is very simple, basically is just a timer
clock, so the cover should look the same but scaled to
fit Cover's size.<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1480640847245_17997">
<p class="MsoNormal" style="background:white"><span
style="font-family:"Helvetica",sans-serif;color:black">Afaik,
android apps have the same behaviour, the cover is
just a scaled down display of the app fullscrean
display.<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1480640847245_17997">
<p class="MsoNormal" style="background:white"><span
style="font-family:"Helvetica",sans-serif;color:black">The
following code works but doenst scale the content:<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_ym19_1_1480640847245_17997">
<p class="MsoNormal" style="background:white"><span
style="font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<pre style="background:white" id="yui_3_16_0_ym19_1_1480640847245_27155"><span style="color:maroon">initialPage</span><span style="color:black">:</span><span style="color:silver"> </span><span style="color:purple">Component</span><span style="color:silver"> </span><span style="color:black">{</span><span style="color:silver"> </span><span style="color:purple">FirstPage</span><span style="color:silver"> </span><span style="color:black">{</span><span style="color:silver"> </span><span style="color:black">}</span><span style="color:silver"> </span><span style="color:black">}<o:p></o:p></span></pre>
<pre style="background:white" id="yui_3_16_0_ym19_1_1480640847245_27165"><span style="color:maroon">cover</span><span style="color:black">:</span><span style="color:silver"> </span><i><span style="color:black">initialPage</span></i><span style="color:silver"> </span><span style="color:green">//Qt.resolvedUrl("cover/CoverPage.qml")</span><span style="color:black"><o:p></o:p></span></pre>
<pre style="background:white" id="yui_3_16_0_ym19_1_1480640847245_27165"><span style="color:black"><o:p> </o:p></span></pre>
<pre style="background:white" id="yui_3_16_0_ym19_1_1480640847245_27165"><span style="color:black"><o:p> </o:p></span></pre>
<pre style="background:white" id="yui_3_16_0_ym19_1_1480640847245_27165"><span style="color:black">So any ideias how to solve this ?<o:p></o:p></span></pre>
<pre style="background:white" id="yui_3_16_0_ym19_1_1480640847245_27165"><span style="color:black"><o:p> </o:p></span></pre>
<pre style="background:white" id="yui_3_16_0_ym19_1_1480640847245_27165"><span style="color:black">Thanks<o:p></o:p></span></pre>
<pre style="background:white" id="yui_3_16_0_ym19_1_1480640847245_27165"><span style="color:black">Joćo<o:p></o:p></span></pre>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a class="moz-txt-link-abbreviated" href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></pre>
</blockquote>
<br>
</body>
</html>