summaryrefslogtreecommitdiffstats
path: root/juk/collectionlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'juk/collectionlist.cpp')
-rw-r--r--juk/collectionlist.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/juk/collectionlist.cpp b/juk/collectionlist.cpp
index 9540be85..5c06049a 100644
--- a/juk/collectionlist.cpp
+++ b/juk/collectionlist.cpp
@@ -85,7 +85,7 @@ void CollectionList::initialize(PlaylistCollection *collection)
// public methods
////////////////////////////////////////////////////////////////////////////////
-PlaylistItem *CollectionList::createItem(const FileHandle &file, QListViewItem *, bool)
+PlaylistItem *CollectionList::createItem(const FileHandle &file, TQListViewItem *, bool)
{
// It's probably possible to optimize the line below away, but, well, right
// now it's more important to not load duplicate items.
@@ -125,13 +125,13 @@ void CollectionList::setupTreeViewEntries(ViewMode *viewMode) const
return;
}
- QValueList<int> columnList;
+ TQValueList<int> columnList;
columnList << PlaylistItem::ArtistColumn;
columnList << PlaylistItem::GenreColumn;
columnList << PlaylistItem::AlbumColumn;
- QStringList items;
- for(QValueList<int>::Iterator colIt = columnList.begin(); colIt != columnList.end(); ++colIt) {
+ TQStringList items;
+ for(TQValueList<int>::Iterator colIt = columnList.begin(); colIt != columnList.end(); ++colIt) {
items.clear();
for(TagCountDictIterator it(*m_columnTags[*colIt]); it.current(); ++it)
items << it.currentKey();
@@ -142,7 +142,7 @@ void CollectionList::setupTreeViewEntries(ViewMode *viewMode) const
void CollectionList::slotNewItems(const KFileItemList &items)
{
- QStringList files;
+ TQStringList files;
for(KFileItemListIterator it(items); it.current(); ++it)
files.append((*it)->url().path());
@@ -200,7 +200,7 @@ void CollectionList::slotCheckCache()
{
PlaylistItemList invalidItems;
- for(QDictIterator<CollectionListItem>it(m_itemsDict); it.current(); ++it) {
+ for(TQDictIterator<CollectionListItem>it(m_itemsDict); it.current(); ++it) {
if(!it.current()->checkCurrent())
invalidItems.append(*it);
processEvents();
@@ -209,12 +209,12 @@ void CollectionList::slotCheckCache()
clearItems(invalidItems);
}
-void CollectionList::slotRemoveItem(const QString &file)
+void CollectionList::slotRemoveItem(const TQString &file)
{
clearItem(m_itemsDict[file]);
}
-void CollectionList::slotRefreshItem(const QString &file)
+void CollectionList::slotRefreshItem(const TQString &file)
{
m_itemsDict[file]->refresh();
}
@@ -230,12 +230,12 @@ CollectionList::CollectionList(PlaylistCollection *collection) :
{
new KAction(i18n("Show Playing"), KShortcut(), actions(), "showPlaying");
- connect(action("showPlaying"), SIGNAL(activated()), this, SLOT(slotShowPlaying()));
+ connect(action("showPlaying"), TQT_SIGNAL(activated()), this, TQT_SLOT(slotShowPlaying()));
- connect(action<KToolBarPopupAction>("back")->popupMenu(), SIGNAL(aboutToShow()),
- this, SLOT(slotPopulateBackMenu()));
- connect(action<KToolBarPopupAction>("back")->popupMenu(), SIGNAL(activated(int)),
- this, SLOT(slotPlayFromBackMenu(int)));
+ connect(action<KToolBarPopupAction>("back")->popupMenu(), TQT_SIGNAL(aboutToShow()),
+ this, TQT_SLOT(slotPopulateBackMenu()));
+ connect(action<KToolBarPopupAction>("back")->popupMenu(), TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotPlayFromBackMenu(int)));
setSorting(-1); // Temporarily disable sorting to add items faster.
m_columnTags[PlaylistItem::ArtistColumn] = new TagCountDict(5001, false);
@@ -265,7 +265,7 @@ CollectionList::~CollectionList()
delete *it;
}
-void CollectionList::contentsDropEvent(QDropEvent *e)
+void CollectionList::contentsDropEvent(TQDropEvent *e)
{
if(e->source() == this)
return; // Don't rearrange in the CollectionList.
@@ -273,7 +273,7 @@ void CollectionList::contentsDropEvent(QDropEvent *e)
Playlist::contentsDropEvent(e);
}
-void CollectionList::contentsDragMoveEvent(QDragMoveEvent *e)
+void CollectionList::contentsDragMoveEvent(TQDragMoveEvent *e)
{
if(canDecode(e) && e->source() != this)
e->accept(true);
@@ -281,10 +281,10 @@ void CollectionList::contentsDragMoveEvent(QDragMoveEvent *e)
e->accept(false);
}
-QString CollectionList::addStringToDict(const QString &value, unsigned column)
+TQString CollectionList::addStringToDict(const TQString &value, unsigned column)
{
if(column > m_columnTags.count() || value.stripWhiteSpace().isEmpty())
- return QString::null;
+ return TQString::null;
int *refCountPtr = m_columnTags[column]->find(value);
if(refCountPtr)
@@ -297,7 +297,7 @@ QString CollectionList::addStringToDict(const QString &value, unsigned column)
return value;
}
-QStringList CollectionList::uniqueSet(UniqueSetType t) const
+TQStringList CollectionList::uniqueSet(UniqueSetType t) const
{
int column;
@@ -316,14 +316,14 @@ QStringList CollectionList::uniqueSet(UniqueSetType t) const
break;
default:
- return QStringList();
+ return TQStringList();
}
if((unsigned) column >= m_columnTags.count())
- return QStringList();
+ return TQStringList();
TagCountDictIterator it(*m_columnTags[column]);
- QStringList list;
+ TQStringList list;
for(; it.current(); ++it)
list += it.currentKey();
@@ -331,7 +331,7 @@ QStringList CollectionList::uniqueSet(UniqueSetType t) const
return list;
}
-void CollectionList::removeStringFromDict(const QString &value, unsigned column)
+void CollectionList::removeStringFromDict(const TQString &value, unsigned column)
{
if(column > m_columnTags.count() || value.isEmpty())
return;
@@ -363,7 +363,7 @@ void CollectionListItem::refresh()
if(id != TrackNumberColumn && id != LengthColumn) {
// All columns other than track num and length need local-encoded data for sorting
- QCString lower = text(i).lower().local8Bit();
+ TQCString lower = text(i).lower().local8Bit();
// For some columns, we may be able to share some strings
@@ -417,7 +417,7 @@ PlaylistItem *CollectionListItem::itemForPlaylist(const Playlist *playlist)
return 0;
}
-void CollectionListItem::updateCollectionDict(const QString &oldPath, const QString &newPath)
+void CollectionListItem::updateCollectionDict(const TQString &oldPath, const TQString &newPath)
{
CollectionList *collection = CollectionList::instance();
@@ -430,7 +430,7 @@ void CollectionListItem::updateCollectionDict(const QString &oldPath, const QStr
void CollectionListItem::repaint() const
{
- QListViewItem::repaint();
+ TQListViewItem::repaint();
for(PlaylistItemList::ConstIterator it = m_children.begin(); it != m_children.end(); ++it)
(*it)->repaint();
}