D13583: KFormat: Allow usage of quantities beyond bytes and seconds
Stefan BrĂ¼ns
noreply at phabricator.kde.org
Sun Jun 17 17:51:28 UTC 2018
bruns created this revision.
bruns added a reviewer: Frameworks.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: kde-frameworks-devel.
bruns requested review of this revision.
REVISION SUMMARY
Its useful to allow automatic formatting of quantities like bit per
second (bit/s), but formatByteSize can not be used for this. Generalize
the implementation to allow usage for arbitrary quantities.
TEST PLAN
make test
REPOSITORY
R244 KCoreAddons
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D13583
AFFECTED FILES
autotests/kformattest.cpp
autotests/kformattest.h
src/lib/util/kformat.cpp
src/lib/util/kformat.h
src/lib/util/kformatprivate.cpp
src/lib/util/kformatprivate_p.h
To: bruns, #frameworks
Cc: kde-frameworks-devel, astippich, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180617/14996cdc/attachment.html>
More information about the Kde-frameworks-devel
mailing list