D27989: Add a new set of barcode size functions

Volker Krause noreply at phabricator.kde.org
Wed Mar 11 17:20:16 GMT 2020


vkrause created this revision.
vkrause added a reviewer: svuorela.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
vkrause requested review of this revision.

REVISION SUMMARY
  preferredSize() is an improvement over what minimumSize() used to do,
  with taking the device pixel ratio into account. Additionally it also
  works correctly for 1D codes now (ie. those are now scannable on a
  standard DPI screen).
  
  trueMinimumSize() is what minimumSize() should have been, ie. the absolute
  minimum amount of pixels needed to display the code. This is mainly useful
  for applications doing their own layouting/scaling logic, beyond what
  preferredSize() offers.
  
  minimumSize() becomes deprecated by this, the deprecation macros will
  follow once the current users have been adjusted.

REPOSITORY
  R280 Prison

BRANCH
  pending

REVISION DETAIL
  https://phabricator.kde.org/D27989

AFFECTED FILES
  autotests/aztecbarcodetest.cpp
  autotests/code128barcodetest.cpp
  src/lib/abstractbarcode.cpp
  src/lib/abstractbarcode.h
  src/quick/barcodequickitem.cpp

To: vkrause, svuorela
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200311/f2c4c300/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list