Replace use of QString::sprintf

This commit is contained in:
Jonas Kvinge
2019-12-21 18:15:45 +01:00
parent ab85b716bb
commit b5a897bb4d
5 changed files with 14 additions and 22 deletions

View File

@@ -526,8 +526,7 @@ void BackendSettingsPage::DeviceStringChanged() {
void BackendSettingsPage::RgPreampChanged(int value) {
float db = float(value) / 10 - 15;
QString db_str;
db_str.sprintf("%+.1f dB", db);
QString db_str = QString("%+.1f dB").arg(db);
ui_->label_replaygainpreamp->setText(db_str);
}