<table><tr><td style="">dhaumann added a comment.
</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/D22715">View Revision</a></tr></table><br /><div><div><p>Btw, I recently wrote a mail to John Layt with the following content. The linked bug may be closed with this change:</p>
<p>Hi John,</p>
<p>quick question to the QPrinter: We still have issues in Kate (and other KDE apps I assume), that the margins of the QPrintDialog are not displayed / remembered correctly.</p>
<p>I once committed a workaround in the KDE 4 times [1], but removed this workaround again for KF5 / Qt5 thinking that this was fixed. But it seems it isn't:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item"><a href="https://bugs.kde.org/show_bug.cgi?id=383697" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=383697</a></li>
<li class="remarkup-list-item"><a href="https://bugs.kde.org/show_bug.cgi?id=406627" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=406627</a></li>
</ul>
<p>Do you have any quick pointers to this? It seems the QPrinter/QPrintDialog still do not correctly read info from CUPS, neither does it correctly remember print settings, is that correct?</p>
<p>Do you happen to have a good solution to this?<br />
On stackoverflow [2] I can find that others also have this issue - and a solution is to load/save each property of QPrinter. But I am not sure this works well if you have multiple printers.</p>
<p>Any pointers welcome [3].</p>
<p>Best regards</p>
<p>[1] <a href="https://cgit.kde.org/kate.git/commit/?id=1aa12bace62fffbcad357623842a0fc01607b3c0" class="remarkup-link" target="_blank" rel="noreferrer">https://cgit.kde.org/kate.git/commit/?id=1aa12bace62fffbcad357623842a0fc01607b3c0</a><br />
[2] <a href="https://stackoverflow.com/a/14979437/2224190" class="remarkup-link" target="_blank" rel="noreferrer">https://stackoverflow.com/a/14979437/2224190</a><br />
[3] <a href="https://xkcd.com/138/" class="remarkup-link" target="_blank" rel="noreferrer">https://xkcd.com/138/</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22715">https://phabricator.kde.org/D22715</a></div></div><br /><div><strong>To: </strong>hoffmannrobert, cullmann<br /><strong>Cc: </strong>dhaumann, cullmann, kwrite-devel, kde-frameworks-devel, univerz, LeGast00n, sbergeron, domson, michaelh, ngraham, bruns, demsking, sars<br /></div>