Fix playlist filter with Qt 5

This commit is contained in:
Jonas Kvinge 2020-07-18 22:37:49 +02:00
parent a3a1c6f4c8
commit 13856b33ec
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
#include <QRegularExpression>
#include <QAbstractItemModel>
#include <QSortFilterProxyModel>
#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
# include <QRegExp>
#endif
@ -81,7 +81,7 @@ void PlaylistFilter::sort(int column, Qt::SortOrder order) {
bool PlaylistFilter::filterAcceptsRow(int row, const QModelIndex &parent) const {
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QString filter = filterRegularExpression().pattern();
#else
QString filter = filterRegExp().pattern();