Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
cc6b826c
Commit
cc6b826c
authored
Mar 03, 2015
by
poixen
Browse files
Removed comments
parent
b5dd7a42
Changes
1
Show whitespace changes
Inline
Side-by-side
cockatrice/src/carddatabasemodel.cpp
View file @
cc6b826c
...
@@ -148,47 +148,12 @@ bool CardDatabaseDisplayModel::filterAcceptsRow(int sourceRow, const QModelIndex
...
@@ -148,47 +148,12 @@ bool CardDatabaseDisplayModel::filterAcceptsRow(int sourceRow, const QModelIndex
bool
show
=
false
;
bool
show
=
false
;
if
(
!
cardName
.
isEmpty
())
{
if
(
!
cardName
.
isEmpty
())
{
if
(
info
->
getName
().
contains
(
cardName
,
Qt
::
CaseInsensitive
))
{
if
(
info
->
getName
().
contains
(
cardName
,
Qt
::
CaseInsensitive
))
show
=
true
;
show
=
true
;
}
}
else
}
else
return
true
;
// search is empty, show all
return
true
;
// search is empty, show all
return
show
;
// term was not found
return
show
;
//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;
}
}
void
CardDatabaseDisplayModel
::
clearSearch
()
void
CardDatabaseDisplayModel
::
clearSearch
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment