diff options
Diffstat (limited to 'katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp')
-rw-r--r-- | katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp b/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp index 2425469..6ad0892 100644 --- a/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp +++ b/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp @@ -89,8 +89,8 @@ void AmarokCatalog::queryChanged() queryList = TQStringList::split ( TQString(" "), TQString(queryString).replace(TQChar(':')," ").replace(TQChar('\''), " ").replace(TQChar('\''), "%") ); for(TQStringList::Iterator it = queryList.begin(); it != queryList.end(); ++it) { - sqlQuery.append(TQString(" AND (t.title LIKE '\%%1\%'").tqarg(*it)); - sqlQuery.append(TQString(" OR a.name LIKE '\%%1\%')").tqarg(*it)); + sqlQuery.append(TQString(" AND (t.title LIKE '\%%1\%'").arg(*it)); + sqlQuery.append(TQString(" OR a.name LIKE '\%%1\%')").arg(*it)); } sqlQuery.append(" ORDER BY a.name, t.title, s.percentage DESC"); @@ -163,8 +163,8 @@ void AmarokCatalog::queryChanged() TQStringList clauses; for(TQStringList::Iterator it = queryList.begin(); it != queryList.end(); ++it) { - clauses += TQString(" (t.title LIKE '\%%1\%'").tqarg(*it) + - TQString(" OR a.name LIKE '\%%1\%')").tqarg(*it); + clauses += TQString(" (t.title LIKE '\%%1\%'").arg(*it) + + TQString(" OR a.name LIKE '\%%1\%')").arg(*it); } sqlQuery.append(clauses.join(TQString(" AND "))); sqlQuery.append(" ORDER BY a.name, t.title, s.percentage DESC"); |