Remove all uses of QTextCodec
This commit is contained in:
@@ -50,7 +50,6 @@
|
||||
#include <QUrl>
|
||||
#include <QImage>
|
||||
#include <QIcon>
|
||||
#include <QTextCodec>
|
||||
#include <QSqlQuery>
|
||||
#include <QStandardPaths>
|
||||
#include <QtDebug>
|
||||
@@ -745,14 +744,6 @@ void Song::set_genre_id3(int id) {
|
||||
set_genre(TStringToQString(TagLib::ID3v1::genre(id)));
|
||||
}
|
||||
|
||||
QString Song::Decode(const QString &tag, const QTextCodec *codec) {
|
||||
if (!codec) {
|
||||
return tag;
|
||||
}
|
||||
|
||||
return codec->toUnicode(tag.toUtf8());
|
||||
}
|
||||
|
||||
void Song::InitFromProtobuf(const pb::tagreader::SongMetadata &pb) {
|
||||
|
||||
if (d->source_ == Source_Unknown) d->source_ = Source_LocalFile;
|
||||
|
||||
Reference in New Issue
Block a user