diff options
Diffstat (limited to 'juk/playlistsearch.cpp')
-rw-r--r-- | juk/playlistsearch.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/juk/playlistsearch.cpp b/juk/playlistsearch.cpp index 940c13e8..f0eb7a29 100644 --- a/juk/playlistsearch.cpp +++ b/juk/playlistsearch.cpp @@ -197,7 +197,7 @@ bool PlaylistSearch::Component::matches(PlaylistItem *item) const for(ColumnList::Iterator it = m_columns.begin(); it != m_columns.end(); ++it) { if(m_re) { - if(item->text(*it).find(m_queryRe) > -1) + if(item->text(*it).tqfind(m_queryRe) > -1) return true; else break; @@ -205,7 +205,7 @@ bool PlaylistSearch::Component::matches(PlaylistItem *item) const switch(m_mode) { case Contains: - if(item->text(*it).find(m_query, 0, m_caseSensitive) > -1) + if(item->text(*it).tqfind(m_query, 0, m_caseSensitive) > -1) return true; break; case Exact: @@ -221,7 +221,7 @@ bool PlaylistSearch::Component::matches(PlaylistItem *item) const case ContainsWord: { TQString s = item->text(*it); - int i = s.find(m_query, 0, m_caseSensitive); + int i = s.tqfind(m_query, 0, m_caseSensitive); if(i >= 0) { @@ -270,7 +270,7 @@ bool PlaylistSearch::Component::operator==(const Component &v) const TQDataStream &operator<<(TQDataStream &s, const PlaylistSearch &search) { s << search.components() - << Q_INT32(search.searchMode()); + << TQ_INT32(search.searchMode()); return s; } @@ -287,7 +287,7 @@ TQDataStream &operator>>(TQDataStream &s, PlaylistSearch &search) for(; it != components.end(); ++it) search.addComponent(*it); - Q_INT32 mode; + TQ_INT32 mode; s >> mode; search.setSearchMode(PlaylistSearch::SearchMode(mode)); @@ -296,11 +296,11 @@ TQDataStream &operator>>(TQDataStream &s, PlaylistSearch &search) TQDataStream &operator<<(TQDataStream &s, const PlaylistSearch::Component &c) { - s << c.isPatternSearch() - << (c.isPatternSearch() ? c.pattern().pattern() : c.query()) - << c.isCaseSensitive() - << c.columns() - << Q_INT32(c.matchMode()); + s << c.isPatternSearch(); + s << (c.isPatternSearch() ? c.pattern().pattern() : c.query()); + s << c.isCaseSensitive(); + s << c.columns(); + s << TQ_INT32(c.matchMode()); return s; } @@ -311,7 +311,7 @@ TQDataStream &operator>>(TQDataStream &s, PlaylistSearch::Component &c) TQString pattern; bool caseSensitive; ColumnList columns; - Q_INT32 mode; + TQ_INT32 mode; s >> patternSearch >> pattern |