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