improve waveform cache size display format - #15578
Conversation
|
hmmmm and more than once. what would cause that form of failure? |
|
does the test confit need a fix, or would that have been a temporary glitch? can someone please trigger the testing again? |
f7f977d to
c1a1d2d
Compare
9c32c8d to
af5281d
Compare
Swiftb0y
left a comment
There was a problem hiding this comment.
Thank you. Would you mind squashing the three commits into a single one?
6be77ee to
bacc6fc
Compare
1d98c9d to
1a47ac7
Compare
…feedback addressed
1a47ac7 to
015c0d3
Compare
ronso0
left a comment
There was a problem hiding this comment.
Thank you for the fixup, looks good.
Just dropped a comment about the units/prefixes
| QString sizeMebibytes = QString::number( | ||
| numBytes / (1024.0 * 1024.0), 'f', 2); | ||
|
|
||
| QString sizeText = QLocale().formattedDataSize(numBytes); |
There was a problem hiding this comment.
IMO we only need a precision of 1, and --personally-- I'd prefer the old format with SI prefixes (kB, MB, GB), see https://doc.qt.io/qt-6/qlocale.html#DataSizeFormat-enum
just because it's used on all (major) marketplaces and even in Mixxx conversations I never encountered the new IEC prefixes (kiB, MiB, GiB)
Wdyt?
There was a problem hiding this comment.
eh i can live with that, cool
015c0d3 to
b187977
Compare
b187977 to
a3a2692
Compare
…-waveform-cache-size-format improve waveform cache size display format
changes the waveform cache size display to automatically use GiB when the size is >= 1024 MiB for better readability.
before: "52533.06 MiB"
after: "51.30 GiB"
the format still shows MiB for smaller caches (< 1 GiB).
fixes #14874