Fix playlist filter with Qt 5
This commit is contained in:
parent
a3a1c6f4c8
commit
13856b33ec
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue