summaryrefslogtreecommitdiffstats
path: root/examples/widgets/itemviews/customsortfiltermodel
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/itemviews/customsortfiltermodel')
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp4
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.h2
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/window.cpp2
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/window.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp b/examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp
index de09f66c79..614e738762 100644
--- a/examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp
+++ b/examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp
@@ -75,7 +75,7 @@ bool MySortFilterProxyModel::filterAcceptsRow(int sourceRow,
return (sourceModel()->data(index0).toString().contains(filterRegExp())
|| sourceModel()->data(index1).toString().contains(filterRegExp()))
- && dateInRange(sourceModel()->data(index2).toDate());
+ && dateInRange(sourceModel()->data(index2).toDate());
}
//! [3]
@@ -110,6 +110,6 @@ bool MySortFilterProxyModel::lessThan(const QModelIndex &left,
bool MySortFilterProxyModel::dateInRange(const QDate &date) const
{
return (!minDate.isValid() || date > minDate)
- && (!maxDate.isValid() || date < maxDate);
+ && (!maxDate.isValid() || date < maxDate);
}
//! [7]
diff --git a/examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.h b/examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.h
index c3ef0b1b7f..db8fc382a4 100644
--- a/examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.h
+++ b/examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.h
@@ -70,4 +70,4 @@ private:
};
//! [0]
-#endif
+#endif // MYSORTFILTERPROXYMODEL_H
diff --git a/examples/widgets/itemviews/customsortfiltermodel/window.cpp b/examples/widgets/itemviews/customsortfiltermodel/window.cpp
index b5d5856980..e11b9c43ba 100644
--- a/examples/widgets/itemviews/customsortfiltermodel/window.cpp
+++ b/examples/widgets/itemviews/customsortfiltermodel/window.cpp
@@ -150,7 +150,7 @@ void Window::textFilterChanged()
filterSyntaxComboBox->currentIndex()).toInt());
Qt::CaseSensitivity caseSensitivity =
filterCaseSensitivityCheckBox->isChecked() ? Qt::CaseSensitive
- : Qt::CaseInsensitive;
+ : Qt::CaseInsensitive;
QRegExp regExp(filterPatternLineEdit->text(), caseSensitivity, syntax);
proxyModel->setFilterRegExp(regExp);
diff --git a/examples/widgets/itemviews/customsortfiltermodel/window.h b/examples/widgets/itemviews/customsortfiltermodel/window.h
index 74fcc0a73a..dae756f8c8 100644
--- a/examples/widgets/itemviews/customsortfiltermodel/window.h
+++ b/examples/widgets/itemviews/customsortfiltermodel/window.h
@@ -87,4 +87,4 @@ private:
};
//! [0]
-#endif
+#endif // WINDOW_H