<table><tr><td style="">mart retitled this revision from "Introduce aboutToShow() signal" to "Make sure size is final after showEvent".<br />mart edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-urtwpoijwiwiwfn/" rel="noreferrer">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D6215" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">introduce this new signal: make sure the size of the dialog</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">make sure after a showevent the size is final and the<br />
dialog can be safely repositioned.<br />
get rid of show and hide of mainItem (as opposed to its window)<br />
since it had repercussions on the size calculation, giving it<br />
a stuttering appearance when windows appeared.</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">is final, sinced with</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">if we want to position</span> the <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">main item and the optional layout</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">window when we are sure the size is final</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">after</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">and</span> the <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">abouttoshow signal and right before actually showing</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">window is not shown yet (but about to) we can</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">it: clients with custom positioning can safely position the dialog</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">do it in the signal handler of visibleChanged (when visible is true)</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">in its signal handler as they know it won't resize when shown.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">we are assured we are right before the expose event</span><br />
<br />
this makes synctomaintem and updatelayoutparameters working even if<div style="padding: 8px 0;">...</div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R242 Plasma Framework (Library)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6215" rel="noreferrer">https://phabricator.kde.org/D6215</a></div></div><br /><div><strong>To: </strong>mart, Plasma, davidedmundson<br /><strong>Cc: </strong>sebas, hein, davidedmundson, plasma-devel, Frameworks, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, apol, mart, lukas<br /></div>