summaryrefslogtreecommitdiffstats
path: root/smtreemodel.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2022-04-15 13:27:34 +0200
committerArno <arno@disconnect.de>2022-04-15 13:27:34 +0200
commit856119c5a43b4781b051b93a0713c152cfd99f85 (patch)
tree4e2fde4e7a76179cc243e0665091c6ad429ea640 /smtreemodel.cpp
parent62d3ca1482b202d2883eeb5e17e72300e8612477 (diff)
downloadSheMov-856119c5a43b4781b051b93a0713c152cfd99f85.tar.gz
SheMov-856119c5a43b4781b051b93a0713c152cfd99f85.tar.bz2
SheMov-856119c5a43b4781b051b93a0713c152cfd99f85.zip
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...
Diffstat (limited to 'smtreemodel.cpp')
-rw-r--r--smtreemodel.cpp4
1 files changed, 2 insertions, 2 deletions
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 &regex, int column) const {
+bool SmTreeModel::matchRecursive(const QModelIndex &pIdx, const QRegularExpression &regex, int column) const {
if(!pIdx.isValid()){
return false;
}
@@ -198,7 +198,7 @@ bool SmTreeModel::matchRecursive(const QModelIndex &pIdx, const QRegExp &regex,
return retval;
}
-bool SmTreeModel::checkParents(const SmTreeItem *item, const QRegExp &regex, int column) const {
+bool SmTreeModel::checkParents(const SmTreeItem *item, const QRegularExpression &regex, int column) const {
while(item != root()){
QString value = item->data(column).toString();
if(value.contains(regex)){