ResourceTreeModel: moved keyword matching code into ResourceItem class

Place functionality to where it belongs. ResourceItem::matchKeywords()
now returns whether a given list of strings matches with various
string properties of the item.
This commit is contained in:
Tobias Doerffel
2009-08-17 22:03:34 +02:00
parent 0a9d3aba6f
commit 38155d95c4
3 changed files with 25 additions and 16 deletions

View File

@@ -212,6 +212,10 @@ public:
void reload();
// returns true if all given keywords match name, tags etc.
bool keywordMatch( const QStringList & _keywords );
// return true, if given ResourceItem is equal
bool operator==( const ResourceItem & _other ) const;
// rates equality with given item