From b7da2a9c444ef3995a23881d3f847c2e18a48cd3 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 13 Nov 2014 17:13:39 -0200 Subject: This is already checked in doFilter Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/filtermodels.cpp | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/filtermodels.cpp b/qt-ui/filtermodels.cpp index 9e3c76331..edd62cb49 100644 --- a/qt-ui/filtermodels.cpp +++ b/qt-ui/filtermodels.cpp @@ -114,11 +114,6 @@ bool SuitsFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel bool SuitsFilterModel::filterRow(int source_row, const QModelIndex &source_parent, QAbstractItemModel *sourceModel) const { - // If there's nothing checked, this should show everything - if (!anyChecked) { - return true; - } - QModelIndex index0 = sourceModel->index(source_row, 0, source_parent); QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE); struct dive *d = (struct dive *)diveVariant.value(); @@ -211,11 +206,6 @@ bool TagFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel * bool TagFilterModel::filterRow(int source_row, const QModelIndex &source_parent, QAbstractItemModel *sourceModel) const { - // If there's nothing checked, this should show everything - if (!anyChecked) { - return true; - } - QModelIndex index0 = sourceModel->index(source_row, 0, source_parent); QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE); struct dive *d = (struct dive *)diveVariant.value(); @@ -269,11 +259,6 @@ bool BuddyFilterModel::doFilter(dive *d, QModelIndex &index0, QAbstractItemModel bool BuddyFilterModel::filterRow(int source_row, const QModelIndex &source_parent, QAbstractItemModel *sourceModel) const { - // If there's nothing checked, this should show everything - if (!anyChecked) { - return true; - } - QModelIndex index0 = sourceModel->index(source_row, 0, source_parent); QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE); struct dive *d = (struct dive *)diveVariant.value(); @@ -348,12 +333,6 @@ bool LocationFilterModel::doFilter(struct dive *d, QModelIndex &index0, QAbstrac bool LocationFilterModel::filterRow(int source_row, const QModelIndex &source_parent, QAbstractItemModel *sourceModel) const { - - // If there's nothing checked, this should show everything - if (!anyChecked) { - return true; - } - QModelIndex index0 = sourceModel->index(source_row, 0, source_parent); QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE); struct dive *d = (struct dive *)diveVariant.value(); -- cgit v1.2.3-70-g09d2