Fix playlist filter with Qt 5
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
#include <QAbstractItemModel>
|
#include <QAbstractItemModel>
|
||||||
#include <QSortFilterProxyModel>
|
#include <QSortFilterProxyModel>
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
# include <QRegExp>
|
# include <QRegExp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ void PlaylistFilter::sort(int column, Qt::SortOrder order) {
|
|||||||
|
|
||||||
bool PlaylistFilter::filterAcceptsRow(int row, const QModelIndex &parent) const {
|
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();
|
QString filter = filterRegularExpression().pattern();
|
||||||
#else
|
#else
|
||||||
QString filter = filterRegExp().pattern();
|
QString filter = filterRegExp().pattern();
|
||||||
|
|||||||
Reference in New Issue
Block a user