<table><tr><td style="">vkrause created this revision.<br />vkrause added a reviewer: svuorela.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />vkrause 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/D27909">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This removes any kind of scaling from the specific implementations, they<br />
now truly report the bare minimum size needed, as well as a corresponding<br />
image. AbstractBarcode scales this to the requested size, and, for now,<br />
adds the previous magic numbers to the minimum size.</p>

<p>This is a further step towards allowing applications full control over<br />
scaling for properly handling high DPI scenarios.</p>

<p>There's two noteworthy behavior changes in this:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">minimumSize() now also works before calling toImage() for the first time.</li>
<li class="remarkup-list-item">toImage() returns valid results down to the actual minimum size, not only</li>
</ul>

<p>to what minimumSize() reports.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R280 Prison</div></div></div><br /><div><strong>BRANCH</strong><div><div>pending</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27909">https://phabricator.kde.org/D27909</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/aztec/encoding/aztec-complete-big.png<br />
autotests/aztec/encoding/aztec-complete-compact1.png<br />
autotests/aztec/encoding/aztec-complete-compact3.png<br />
autotests/aztec/encoding/aztec-complete-compact4.png<br />
autotests/aztec/encoding/aztec-complete-full5.png<br />
autotests/aztecbarcodetest.cpp<br />
autotests/code128barcodetest.cpp<br />
src/lib/abstractbarcode.cpp<br />
src/lib/abstractbarcode.h<br />
src/lib/aztecbarcode.cpp<br />
src/lib/aztecbarcode.h<br />
src/lib/code128barcode.cpp<br />
src/lib/code39barcode.cpp<br />
src/lib/code93barcode.cpp<br />
src/lib/datamatrixbarcode.cpp<br />
src/lib/qrcodebarcode.cpp</div></div></div><br /><div><strong>To: </strong>vkrause, svuorela<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns<br /></div>