Add filtering of numerical cols to collection
CollectionFilterWidget: Updated the tooltip, to reflect the changes. CollectionQuery: Add parsing for SQL operators and insert right SQL "where" searches. Song: Add list of numerical columns playlistfilterparser.cpp/FilterParser: move time and rating parsing functions to new file: searchparserutils.cpp: Contains common code used to parse search terms in playlist and collection filters.
This commit is contained in:
@@ -142,6 +142,17 @@ const QString Song::kColumnSpec = Song::kColumns.join(", ");
|
||||
const QString Song::kBindSpec = Utilities::Prepend(":", Song::kColumns).join(", ");
|
||||
const QString Song::kUpdateSpec = Utilities::Updateify(Song::kColumns).join(", ");
|
||||
|
||||
// used to indicate, what columns can be filtered numerically. Used by the CollectionQuery.
|
||||
const QStringList Song::kNumericalColumns = QStringList() << "year"
|
||||
<< "length"
|
||||
<< "samplerate"
|
||||
<< "bitdepth"
|
||||
<< "bitrate"
|
||||
<< "rating"
|
||||
<< "playcount"
|
||||
<< "skipcount";
|
||||
|
||||
|
||||
const QStringList Song::kFtsColumns = QStringList() << "ftstitle"
|
||||
<< "ftsalbum"
|
||||
<< "ftsartist"
|
||||
|
||||
Reference in New Issue
Block a user