Use QString::number()

This commit is contained in:
Jonas Kvinge 2020-11-17 01:21:38 +01:00
parent 39792d76cf
commit fa0f07f553
1 changed files with 3 additions and 3 deletions

View File

@ -232,17 +232,17 @@ QStandardItem *InternetSearchModel::BuildContainers(const Song &s, QStandardItem
break; break;
case CollectionModel::GroupBy_Samplerate: case CollectionModel::GroupBy_Samplerate:
display_text = QString(s.samplerate(), 1); display_text = QString::number(s.samplerate());
sort_text = display_text; sort_text = display_text;
break; break;
case CollectionModel::GroupBy_Bitdepth: case CollectionModel::GroupBy_Bitdepth:
display_text = QString(s.bitdepth(), 1); display_text = QString::number(s.bitdepth());
sort_text = display_text; sort_text = display_text;
break; break;
case CollectionModel::GroupBy_Bitrate: case CollectionModel::GroupBy_Bitrate:
display_text = QString(s.bitrate(), 1); display_text = QString::number(s.bitrate());
sort_text = display_text; sort_text = display_text;
break; break;