<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://git.reviewboard.kde.org/r/107356/">http://git.reviewboard.kde.org/r/107356/</a>
</td>
</tr>
</table>
<br />
<p>Ship it!</p>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">1) never trust documentation :) There is a PageSize enum, it's just deprecated (so, actually, you can find it in the documentation, it's just a bit more hidden)
2) For KF5 we can't use a proper enum type here, because QPrinter has moved to the "print support" library, which would be a dependency just for that. Same in kdelibs4, actually, it doesn't use QPrinter because that's in QtGui, and klocale is in kdecore.
3) Your patch is OK though. I just checked, and PageSize is just a typedef for PaperSize, so the actual int values are the same, so no porting problem. Phew.</pre>
<br />
<p>- David</p>
<br />
<p>On November 17th, 2012, 10:31 a.m., Thomas Fischer wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
<tr>
<td>
<div>Review request for kdelibs.</div>
<div>By Thomas Fischer.</div>
<p style="color: grey;"><i>Updated Nov. 17, 2012, 10:31 a.m.</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">According to the latest Qt documentation, there is no PageSize enum in QPrinter, only a PaperSize enum.
BTW, wouldn't it be a good idea for KDE5 (not to break anything now, but add a "//KDE5" comment) to use QPrinter's enum directly instead of an int and to rename the functions to paperSize() and setPaperSize(..), respectively?</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>kdecore/localization/klocale.h <span style="color: grey">(cdbc3d3)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/107356/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>