Removed comments
This commit is contained in:
parent
b5dd7a42ce
commit
cc6b826cad
1 changed files with 2 additions and 37 deletions
|
@ -148,47 +148,12 @@ bool CardDatabaseDisplayModel::filterAcceptsRow(int sourceRow, const QModelIndex
|
|||
|
||||
bool show = false;
|
||||
if (!cardName.isEmpty()) {
|
||||
if (info->getName().contains(cardName, Qt::CaseInsensitive)) {
|
||||
if (info->getName().contains(cardName, Qt::CaseInsensitive))
|
||||
show = true;
|
||||
}
|
||||
} else
|
||||
return true;// search is empty, show all
|
||||
|
||||
return show; // term was not found
|
||||
|
||||
|
||||
|
||||
//if (((isToken == ShowTrue) && !info->getIsToken()) || ((isToken == ShowFalse) && info->getIsToken()))
|
||||
// return false;
|
||||
//
|
||||
//if (!cardNameBeginning.isEmpty())
|
||||
// if (!info->getName().startsWith(cardNameBeginning, Qt::CaseInsensitive))
|
||||
// return false;
|
||||
//
|
||||
//if (!cardName.isEmpty())
|
||||
// if (!info->getName().contains(cardName, Qt::CaseInsensitive))
|
||||
// return false;
|
||||
//
|
||||
//if (!cardNameSet.isEmpty())
|
||||
// if (!cardNameSet.contains(info->getName()))
|
||||
// return false;
|
||||
//
|
||||
//if (!cardText.isEmpty())
|
||||
// if (!info->getText().contains(cardText, Qt::CaseInsensitive))
|
||||
// return false;
|
||||
//
|
||||
//if (!cardColors.isEmpty())
|
||||
// if (QSet<QString>::fromList(info->getColors()).intersect(cardColors).isEmpty() && !(info->getColors().isEmpty() && cardColors.contains("X")))
|
||||
// return false;
|
||||
//
|
||||
//if (!cardTypes.isEmpty())
|
||||
// if (!cardTypes.contains(info->getMainCardType()))
|
||||
// return false;
|
||||
|
||||
//if (filterTree != NULL)
|
||||
// return filterTree->acceptsCard(info);
|
||||
|
||||
//return true;
|
||||
return show;
|
||||
}
|
||||
|
||||
void CardDatabaseDisplayModel::clearSearch()
|
||||
|
|
Loading…
Reference in a new issue