Skip to content

Commit

Permalink
Use filterRegularExpression in SortFilterProxyModel
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Dec 23, 2023
1 parent 3c98de4 commit bc58725
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion avogadro/qtgui/sortfiltertreeproxymodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ bool SortFilterTreeProxyModel::filterAcceptsRow(
bool childOfRoot = false;
QModelIndex parent = sourceParent;
for (int depth = 3; depth > 0; depth--) {
if (sourceModel()->data(parent).toString().contains(filterRegExp()))
if (sourceModel()->data(parent).toString().contains(
filterRegularExpression()))
return true; // a parent matches the pattern

parent = parent.parent();
Expand Down

1 comment on commit bc58725

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERROR: clang-format-diff detected formatting issues. See the artifact for a patch or run clang-format on your branch.

Please sign in to comment.