<table><tr><td style="">leinir created this revision.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />leinir requested review of this revision.
</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/D27204">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This resolves several issues found in the KNSQuick Dialog component.</p>
<p>Specifically it puts a background in the dialog (as a rectangle),<br />
since the QtQuick Dialogs base dialog lacks such a thing by default,<br />
and offers no background property to rectify it.</p>
<p>It further changes the Close button from a custom one to using a<br />
default button provided by the various underlying systems. This<br />
is more fault proof than the previous incarnation, but requires<br />
that the escape button press is handled separately.</p>
<p>Finally it sets a sensible default size (previously the dialog<br />
was made large by the layout, but as a side effect of the layouting<br />
now being done without a Layout (which we could, but which would make<br />
the code enormously convoluted for little gain), we can now set a<br />
set of implicit width and height on the content item, which results<br />
in both a sensible default size and a dialogue that will resize down<br />
the way one would expect it to).</p>
<p>This could have been done as separate patches, but they're too<br />
intertwined for that to feel in any way reasonable to do...</p>
<p>BUG:415606<br />
BUG:416354<br />
BUG:414682</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R304 KNewStuff</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix-dialog-background-and-button (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27204">https://phabricator.kde.org/D27204</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/qtquick/qml/Dialog.qml</div></div></div><br /><div><strong>To: </strong>leinir<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns<br /></div>