D21533: Format photo exposure time as rational when applicable

Alexander Stippich noreply at phabricator.kde.org
Wed Jun 5 21:03:00 BST 2019


astippich added inline comments.

INLINE COMMENTS

> bruns wrote in formatstrings.cpp:167
> For a chart of typical exposure times, see https://www.borrowlenses.com/blog/shutter-speed-chart/
> 
> I can confirm for my Canon SLR there is at one more value which would give a deviating result, 0.3 seconds (!= 1/3s). 0.25 seconds is shown as 1/4s.

Computation now also falls back to decimal representation if it cannot be represented with a 1/x rational

REPOSITORY
  R286 KFileMetaData

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

To: astippich, bruns, ngraham
Cc: kde-frameworks-devel, #baloo, LeGast00n, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190605/778e5c96/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list