summaryrefslogtreecommitdiffstats
path: root/juk/playlistsearch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'juk/playlistsearch.cpp')
-rw-r--r--juk/playlistsearch.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/juk/playlistsearch.cpp b/juk/playlistsearch.cpp
index a2109b26..940c13e8 100644
--- a/juk/playlistsearch.cpp
+++ b/juk/playlistsearch.cpp
@@ -61,7 +61,7 @@ void PlaylistSearch::search()
PlaylistList::Iterator playlistIt = m_playlists.begin();
for(; playlistIt != m_playlists.end(); ++playlistIt) {
if(!isEmpty()) {
- for(QListViewItemIterator it(*playlistIt); it.current(); ++it)
+ for(TQListViewItemIterator it(*playlistIt); it.current(); ++it)
checkItem(static_cast<PlaylistItem *>(*it));
}
else {
@@ -155,7 +155,7 @@ PlaylistSearch::Component::Component() :
}
-PlaylistSearch::Component::Component(const QString &query,
+PlaylistSearch::Component::Component(const TQString &query,
bool caseSensitive,
const ColumnList &columns,
MatchMode mode) :
@@ -169,7 +169,7 @@ PlaylistSearch::Component::Component(const QString &query,
}
-PlaylistSearch::Component::Component(const QRegExp &query, const ColumnList& columns) :
+PlaylistSearch::Component::Component(const TQRegExp &query, const ColumnList& columns) :
m_queryRe(query),
m_columns(columns),
m_mode(Exact),
@@ -220,7 +220,7 @@ bool PlaylistSearch::Component::matches(PlaylistItem *item) const
break;
case ContainsWord:
{
- QString s = item->text(*it);
+ TQString s = item->text(*it);
int i = s.find(m_query, 0, m_caseSensitive);
if(i >= 0) {
@@ -267,7 +267,7 @@ bool PlaylistSearch::Component::operator==(const Component &v) const
// helper functions
////////////////////////////////////////////////////////////////////////////////
-QDataStream &operator<<(QDataStream &s, const PlaylistSearch &search)
+TQDataStream &operator<<(TQDataStream &s, const PlaylistSearch &search)
{
s << search.components()
<< Q_INT32(search.searchMode());
@@ -275,7 +275,7 @@ QDataStream &operator<<(QDataStream &s, const PlaylistSearch &search)
return s;
}
-QDataStream &operator>>(QDataStream &s, PlaylistSearch &search)
+TQDataStream &operator>>(TQDataStream &s, PlaylistSearch &search)
{
search.clearPlaylists();
search.addPlaylist(CollectionList::instance());
@@ -294,7 +294,7 @@ QDataStream &operator>>(QDataStream &s, PlaylistSearch &search)
return s;
}
-QDataStream &operator<<(QDataStream &s, const PlaylistSearch::Component &c)
+TQDataStream &operator<<(TQDataStream &s, const PlaylistSearch::Component &c)
{
s << c.isPatternSearch()
<< (c.isPatternSearch() ? c.pattern().pattern() : c.query())
@@ -305,10 +305,10 @@ QDataStream &operator<<(QDataStream &s, const PlaylistSearch::Component &c)
return s;
}
-QDataStream &operator>>(QDataStream &s, PlaylistSearch::Component &c)
+TQDataStream &operator>>(TQDataStream &s, PlaylistSearch::Component &c)
{
bool patternSearch;
- QString pattern;
+ TQString pattern;
bool caseSensitive;
ColumnList columns;
Q_INT32 mode;
@@ -320,7 +320,7 @@ QDataStream &operator>>(QDataStream &s, PlaylistSearch::Component &c)
>> mode;
if(patternSearch)
- c = PlaylistSearch::Component(QRegExp(pattern), columns);
+ c = PlaylistSearch::Component(TQRegExp(pattern), columns);
else
c = PlaylistSearch::Component(pattern, caseSensitive, columns, PlaylistSearch::Component::MatchMode(mode));