Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 507cb3f6 authored by Alexander Stippich's avatar Alexander Stippich

provide sample rate in kHz

Summary: gives the sample rate a proper unit and displays it in a more readable way

Reviewers: #baloo, elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: elvisangelaccio

Tags: #baloo

Differential Revision:
parent e9f00ca8
......@@ -123,6 +123,8 @@ QWidget* WidgetFactory::createWidget(const QString& prop, const QVariant& value,
valueString = form.formatDuration(value.toInt() * 1000);
} else if (prop == QLatin1String("bitRate")) {
valueString = i18nc("@label bitrate (per second)", "%1/s", form.formatByteSize(value.toInt(), 0, KFormat::MetricBinaryDialect));
} else if (prop == QLatin1String("sampleRate")) {
valueString = i18nc("@label samplerate in kilohertz", "%1 kHz", QLocale().toString(value.toDouble() / 1000));
} else if (prop == QLatin1String("releaseYear")) {
valueString = value.toString();
} else if (prop == QLatin1String("originUrl")) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment