fix bitrate unit
AbandonedPublic

Authored by astippich on Apr 22 2018, 12:33 PM.

Details

Reviewers
bruns
Summary

bitrate is given in kbit/s, not kB/s

Diff Detail

Repository
R824 Baloo Widgets
Branch
bitrate
Lint
No Linters Available
Unit
No Unit Test Coverage
astippich created this revision.Apr 22 2018, 12:33 PM
Restricted Application added a project: Baloo. · View Herald TranscriptApr 22 2018, 12:33 PM
astippich requested review of this revision.Apr 22 2018, 12:33 PM
astippich updated this revision to Diff 32796.Apr 22 2018, 12:44 PM
  • adjust i18n description
bruns added a subscriber: bruns.Apr 23 2018, 12:29 AM
bruns added inline comments.
src/widgetfactory.cpp
126

I would prefer generalizing KFormat to accept an optional unit suffix, for e.g. bits, byte, meter, gramm, seconds ...

astippich added inline comments.Apr 23 2018, 7:39 PM
src/widgetfactory.cpp
126

That is the best solution, but I'm lacking the time to do it.

Restricted Application added a subscriber: Baloo. · View Herald TranscriptMay 21 2018, 1:28 PM

gentle ping. is this solution acceptable?

bruns added a comment.Jun 17 2018, 6:01 PM

gentle ping. is this solution acceptable?

See D13583

thanks for working on this, I will test the your changes.
how likely is it that we can require Kf 5.48 soon in baloo-widgets? it may be worth to land this one in the meantime or should I abandon this revision?

friendly ping. this still fixes a wrong unit until KFormat can be used.

bruns added a comment.Jul 14 2018, 2:38 PM

friendly ping. this still fixes a wrong unit until KFormat can be used.

KFormat::formatValue() just landed, but this will raise the requirements to KF 5.49.

In D13886 the requirements were set to the same as Dolphin, and it is currently at 5.43. Imho it would be better to add a compile time switch (afterwards)

kossebau edited subscribers, added: Dolphin; removed: kossebau.Jul 15 2018, 9:57 AM

I only bumped the min deps to be able to apply some coding standards and have better known build conditions, so the unit tests could be fixed to no longer fail.

Other than that no own stakes here, just a plain end user :)

Though looking at the KA18.08 release plan, dependency freeze date has been passed, so bumping the min kf version would no longer be possible.
https://community.kde.org/Schedules/Applications/18.08_Release_Schedule#Thursday.2C_July_12.2C_2018:_KDE_Applications_18.08_Dependency_Freeze

So a build time version switch seems to be the solution to approach, if you ask me.

Sorry for the long absence, I was on holiday. Can we agree on merging this patch for applications 18.08, and I will make a patch for 18.12 which uses the new capabilities of KFormat?

cfeck added a subscriber: cfeck.Aug 7 2018, 8:17 PM

We froze translatable text on 19th July, see https://community.kde.org/Schedules

master branch if someone approves this.

astippich updated this revision to Diff 40254.Aug 22 2018, 8:09 PM
  • use new capabilities from KFormat when available

ping. Would be great to finally land this fix (in master)

Gentle ping. It is only a change of a unit label after all :)

Can we please first answer this and this before going on with this? I feel they are just ignored without any reasonable explanation. Thanks.

Can we please first answer this and this before going on with this? I feel they are just ignored without any reasonable explanation. Thanks.

I'm totally fine with implementing only the label change and not using KFormat if there are still concerns. This would be fully translatable.

Come on, it shouldn't take 5 month to implement a unit label fix.

Can we please first answer this and this before going on with this? I feel they are just ignored without any reasonable explanation. Thanks.

I'll see what I can do.

astippich abandoned this revision.Feb 10 2019, 8:42 PM

will be superseded by D18910