From 82167d2422a4b6e3071dca68cf65a66e1da41ab4 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 17 Jul 2011 16:46:24 +0200 Subject: A round of the "new" astyle 2.01... --- src/urlfilterproxymodel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/urlfilterproxymodel.cpp') diff --git a/src/urlfilterproxymodel.cpp b/src/urlfilterproxymodel.cpp index 4aaf09da..c3b4beea 100644 --- a/src/urlfilterproxymodel.cpp +++ b/src/urlfilterproxymodel.cpp @@ -31,7 +31,7 @@ UrlFilterProxyModel::UrlFilterProxyModel(QObject *parent) - : QSortFilterProxyModel(parent) + : QSortFilterProxyModel(parent) { setFilterCaseSensitivity(Qt::CaseInsensitive); } @@ -45,13 +45,13 @@ bool UrlFilterProxyModel::filterAcceptsRow(const int source_row, const QModelInd bool UrlFilterProxyModel::recursiveMatch(const QModelIndex &index) const { - if (index.data().toString().contains(filterRegExp())) + if(index.data().toString().contains(filterRegExp())) return true; int numChildren = sourceModel()->rowCount(index); - for (int childRow = 0; childRow < numChildren; ++childRow) + for(int childRow = 0; childRow < numChildren; ++childRow) { - if (recursiveMatch(sourceModel()->index(childRow, 0, index))) + if(recursiveMatch(sourceModel()->index(childRow, 0, index))) return true; } -- cgit v1.2.1