From 856119c5a43b4781b051b93a0713c152cfd99f85 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 15 Apr 2022 13:27:34 +0200 Subject: Make it run with Qt6 This is a huge commit. Changes: * Obviously, make it compile * Make it run (only scarcely tested) * get rid of most of clang's warnings Let's see what surprises are in store... --- smtreemodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'smtreemodel.cpp') diff --git a/smtreemodel.cpp b/smtreemodel.cpp index 98490fc..f314222 100644 --- a/smtreemodel.cpp +++ b/smtreemodel.cpp @@ -166,7 +166,7 @@ QModelIndex SmTreeModel::findRecursive(const QVariant &value, int column, const return QModelIndex(); } -bool SmTreeModel::matchRecursive(const QModelIndex &pIdx, const QRegExp ®ex, int column) const { +bool SmTreeModel::matchRecursive(const QModelIndex &pIdx, const QRegularExpression ®ex, int column) const { if(!pIdx.isValid()){ return false; } @@ -198,7 +198,7 @@ bool SmTreeModel::matchRecursive(const QModelIndex &pIdx, const QRegExp ®ex, return retval; } -bool SmTreeModel::checkParents(const SmTreeItem *item, const QRegExp ®ex, int column) const { +bool SmTreeModel::checkParents(const SmTreeItem *item, const QRegularExpression ®ex, int column) const { while(item != root()){ QString value = item->data(column).toString(); if(value.contains(regex)){ -- cgit v1.2.3-70-g09d2