mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
This is already checked in doFilter
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
462091b963
commit
b7da2a9c44
1 changed files with 0 additions and 21 deletions
|
@ -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
|
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);
|
QModelIndex index0 = sourceModel->index(source_row, 0, source_parent);
|
||||||
QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE);
|
QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE);
|
||||||
struct dive *d = (struct dive *)diveVariant.value<void *>();
|
struct dive *d = (struct dive *)diveVariant.value<void *>();
|
||||||
|
@ -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
|
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);
|
QModelIndex index0 = sourceModel->index(source_row, 0, source_parent);
|
||||||
QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE);
|
QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE);
|
||||||
struct dive *d = (struct dive *)diveVariant.value<void *>();
|
struct dive *d = (struct dive *)diveVariant.value<void *>();
|
||||||
|
@ -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
|
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);
|
QModelIndex index0 = sourceModel->index(source_row, 0, source_parent);
|
||||||
QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE);
|
QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE);
|
||||||
struct dive *d = (struct dive *)diveVariant.value<void *>();
|
struct dive *d = (struct dive *)diveVariant.value<void *>();
|
||||||
|
@ -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
|
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);
|
QModelIndex index0 = sourceModel->index(source_row, 0, source_parent);
|
||||||
QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE);
|
QVariant diveVariant = sourceModel->data(index0, DiveTripModel::DIVE_ROLE);
|
||||||
struct dive *d = (struct dive *)diveVariant.value<void *>();
|
struct dive *d = (struct dive *)diveVariant.value<void *>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue