D13571: Correct KFormat::formatBytes examples

2018-07-14 Thread Stefan Brüns
This revision was automatically updated to reflect the committed changes. Closed by commit R244:59dc873bcbe1: Correct KFormat::formatBytes examples (authored by bruns). REPOSITORY R244 KCoreAddons CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D13571?vs=36731=37744 REVISION DETAIL

D13571: Correct KFormat::formatBytes examples

2018-07-09 Thread Dominik Haumann
dhaumann accepted this revision. dhaumann added a comment. This revision is now accepted and ready to land. I think this is an improvement. Even if it can be improved even more, I believe it is better to push this instead of postponing a commit. REPOSITORY R244 KCoreAddons BRANCH

D13571: Correct KFormat::formatBytes examples

2018-07-09 Thread Stefan Brüns
bruns marked 2 inline comments as done. bruns added a comment. ping! REPOSITORY R244 KCoreAddons REVISION DETAIL https://phabricator.kde.org/D13571 To: bruns, #frameworks Cc: apol, kde-frameworks-devel, michaelh, ngraham, bruns

D13571: Correct KFormat::formatBytes examples

2018-06-26 Thread Stefan Brüns
bruns updated this revision to Diff 36731. bruns added a comment. Use @code/@endcode Reword extended documentation for precision parameter REPOSITORY R244 KCoreAddons CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D13571?vs=36234=36731 BRANCH kformat_doc REVISION DETAIL

D13571: Correct KFormat::formatBytes examples

2018-06-19 Thread Stefan Brüns
bruns added a comment. In D13571#280135 , @apol wrote: > In D13571#279554 , @bruns wrote: > > > In D13571#279550 , @apol wrote: > > > > > > The given

D13571: Correct KFormat::formatBytes examples

2018-06-19 Thread Aleix Pol Gonzalez
apol added a comment. In D13571#279554 , @bruns wrote: > In D13571#279550 , @apol wrote: > > > > The given example is just plain wrong. It does not work, it is just some false prosa. > > > >

D13571: Correct KFormat::formatBytes examples

2018-06-18 Thread Stefan Brüns
bruns added inline comments. INLINE COMMENTS > kformattest.cpp:37 > QCOMPARE(format.formatByteSize(0), QStringLiteral("0 B")); > QCOMPARE(format.formatByteSize(50), QStringLiteral("50 B")); > QCOMPARE(format.formatByteSize(500), QStringLiteral("500 B")); See here for handling of

D13571: Correct KFormat::formatBytes examples

2018-06-18 Thread Stefan Brüns
bruns added a comment. In D13571#279550 , @apol wrote: > > The given example is just plain wrong. It does not work, it is just some false prosa. > > Fair enough, yet the API user may want to be able to understand what's the logic behind it,

D13571: Correct KFormat::formatBytes examples

2018-06-18 Thread Aleix Pol Gonzalez
apol added a comment. > The given example is just plain wrong. It does not work, it is just some false prosa. Fair enough, yet the API user may want to be able to understand what's the logic behind it, so if it can be explained on the documentation that could be useful. INLINE

D13571: Correct KFormat::formatBytes examples

2018-06-18 Thread Stefan Brüns
bruns marked an inline comment as done. bruns added a comment. In D13571#279453 , @apol wrote: > Then explain why it works? Actually the former behaviour is what I'd expect. The given example is just plain wrong. It does not work, it is

D13571: Correct KFormat::formatBytes examples

2018-06-18 Thread Stefan Brüns
bruns marked an inline comment as done. bruns added inline comments. INLINE COMMENTS > apol wrote in kformat.h:184 > What's "resp."? respectively REPOSITORY R244 KCoreAddons REVISION DETAIL https://phabricator.kde.org/D13571 To: bruns, #frameworks Cc: apol, kde-frameworks-devel,

D13571: Correct KFormat::formatBytes examples

2018-06-18 Thread Aleix Pol Gonzalez
apol added a comment. Then explain why it works? Actually the former behaviour is what I'd expect. INLINE COMMENTS > kformat.h:184 > + *1 by default so when in doubt use 1. Integral values less than > 1000 > + *resp. 1024 always omit the fractional part. > *

D13571: Correct KFormat::formatBytes examples

2018-06-16 Thread Stefan Brüns
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 The example left out the "precision" parameter,