summaryrefslogtreecommitdiff
path: root/src/urlfilterproxymodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/urlfilterproxymodel.cpp')
-rw-r--r--src/urlfilterproxymodel.cpp8
1 files changed, 4 insertions, 4 deletions
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;
}