<table><tr><td style="">mart edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-rkpqdztkdysdggn/" rel="noreferrer">(Show Details)</a><br />mart edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-k5c5wfw4wfojyfs/" 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(151, 234, 151, .6);">* </span>make sure after a showevent the size is final and the<br />
dialog can be safely repositioned.<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">get rid of show and hide of mainItem (as opposed to its window)</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">* set mainItem visible in :setVisible() so that is executed before showEvent:</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">since it had repercussions on the size calculation</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">   resizing windows in their show event is definitely not enough</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">giving it<br />
a stuttering appearance when windows appeared.<br />
if we want to position</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">causes events to arrive to <br />
   reset to the old geometry in race with</span> the <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">window when we are sur</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">setgeometry don</span>e th<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">e size is final</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">ere, don't know yet</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">and the window is not shown yet (but about to) we can</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">   if it's the qpa, qwindow, or the windowmanager</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">do it in the signal handler of visibleChanged (when visible is true)</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">* make synctomaintem and updatelayoutparameters working even if</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">we are assured we are right before the expose event<br />
<br />
this makes synctomaintem and updatelayoutparameters working even if</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">the dialog is not visible as we need to resize beforehand<br />
* move the plasmasurface window also in the show event as if there was no moveevent</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">the dialog is not visible as we need to resize beforehand<br />
<br />
first user of this will</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">  after an hide/show, its position would</span> be <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">the notifications applet</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">resetted to 0,0<br />
</span></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;">current dialog users behave the same<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> (like pre-D6216 notifications applet)</span>, tests still pass<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>BRANCH</strong><div><div>master</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>