Commit dd1a6929 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against qt6

parent 8ab74330
Pipeline #180677 passed with stage
in 2 minutes and 18 seconds
......@@ -98,7 +98,11 @@ bool CategoryFilterProxyModel::filterAcceptsRow(int row, const QModelIndex &pare
const int idx = cat.indexOf(QLatin1String("?tag="));
if (idx >= 0) {
++validCategories;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Tag::Id id = cat.midRef(idx + 5).toInt();
#else
Tag::Id id = QStringView(cat).mid(idx + 5).toInt();
#endif
if (d->containsId(id)) {
return true; // a category matches filter
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment