Make playlist ignore articles when sorting (#202)
This is more correct, and the other way is driving me crazy.
This commit is contained in:
committed by
Jonas Kvinge
parent
64750025f6
commit
5cde33711e
@@ -126,6 +126,8 @@ class Song {
|
||||
static const QRegExp kTitleRemoveMisc;
|
||||
static const QRegExp kFilenameRemoveNonFatChars;
|
||||
|
||||
static const QStringList kArticles;
|
||||
|
||||
static QString JoinSpec(const QString &table);
|
||||
|
||||
static Source SourceFromURL(const QUrl &url);
|
||||
@@ -184,7 +186,9 @@ class Song {
|
||||
int id() const;
|
||||
|
||||
const QString &title() const;
|
||||
const QString &title_sortable() const;
|
||||
const QString &album() const;
|
||||
const QString &album_sortable() const;
|
||||
const QString &artist() const;
|
||||
const QString &albumartist() const;
|
||||
int track() const;
|
||||
@@ -343,6 +347,8 @@ class Song {
|
||||
private:
|
||||
struct Private;
|
||||
|
||||
QString sortable(const QString &v) const;
|
||||
|
||||
QSharedDataPointer<Private> d;
|
||||
};
|
||||
Q_DECLARE_METATYPE(Song);
|
||||
|
||||
Reference in New Issue
Block a user