summaryrefslogtreecommitdiffstats
path: root/juk/playlistsearch.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /juk/playlistsearch.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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));