Adds Bitrate to Dolphin's Additional information columns.
BUG: 368418
broulik | |
dfaure | |
emmanuelp | |
aacid |
Dolphin | |
KDE Applications |
Adds Bitrate to Dolphin's Additional information columns.
BUG: 368418
Tested in KDE Neon. A bitrate column can be added and shows the bitrate in kb/s:
Works for audio as well as video files!
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
src/kitemviews/private/kbaloorolesprovider.cpp | ||
---|---|---|
203 | It should be float(value) / 1000 or you will not get a float but an int. |
src/kitemviews/private/kbaloorolesprovider.cpp | ||
---|---|---|
204 | Should this string (" kB/s") also be translated or not? :) |
src/kitemviews/private/kbaloorolesprovider.cpp | ||
---|---|---|
204 | Please make use of KFormat as done in https://github.com/KDE/baloo-widgets/blob/master/src/widgetfactory.cpp#L125. |
Used the appropriate metricated and internationalized bitrate converter. Thanks, @emmanuelp and @alexeymin!
I don't have time to test now, but i understand you rebased it so if it's good it's good :)
Nnnope, patch fails to apply for me, on current dolphin master. ๐ https://paste.kde.org/ppx1r8xxl
Diff 19425 and Diff 19660 are identical (save for a whitespace change). Maybe the wrong patch was uploaded?
I can only recommend investing a couple of minutes in setting up arc, as it will track and restore the base revisions for uploader as well as reviewer (let me know if you need help with that).