diff options
author | David Schulz <david.schulz@digia.com> | 2012-11-22 13:40:51 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-22 13:56:25 +0100 |
commit | ab0a007cb369a8e9a1bf43c9386a77d36199759b (patch) | |
tree | 495cbe311be5b5a7cda956b556e0a67b53bf523c /examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp | |
parent | 49a4d058cc1ee38adcd292e67d49a8644538394c (diff) |
QtBase: examples/widgets/itemviews code style
Change-Id: I78a7745f7dc3add3fd7780220118d1b35b50a941
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp')
-rw-r--r-- | examples/widgets/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp | 4 |
1 files changed, 2 insertions, 2 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] |