|
|
@ -750,7 +750,7 @@ void Playlist::slotRefresh()
|
|
|
|
if(l.isEmpty())
|
|
|
|
if(l.isEmpty())
|
|
|
|
l = visibleItems();
|
|
|
|
l = visibleItems();
|
|
|
|
|
|
|
|
|
|
|
|
KApplication::setOverrideCursor(TQt::waitCursor);
|
|
|
|
TDEApplication::setOverrideCursor(TQt::waitCursor);
|
|
|
|
for(PlaylistItemList::Iterator it = l.begin(); it != l.end(); ++it) {
|
|
|
|
for(PlaylistItemList::Iterator it = l.begin(); it != l.end(); ++it) {
|
|
|
|
(*it)->refreshFromDisk();
|
|
|
|
(*it)->refreshFromDisk();
|
|
|
|
|
|
|
|
|
|
|
@ -763,7 +763,7 @@ void Playlist::slotRefresh()
|
|
|
|
|
|
|
|
|
|
|
|
processEvents();
|
|
|
|
processEvents();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
KApplication::restoreOverrideCursor();
|
|
|
|
TDEApplication::restoreOverrideCursor();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Playlist::slotRenameFile()
|
|
|
|
void Playlist::slotRenameFile()
|
|
|
@ -877,7 +877,7 @@ void Playlist::slotCoverChanged(int coverId)
|
|
|
|
|
|
|
|
|
|
|
|
void Playlist::slotGuessTagInfo(TagGuesser::Type type)
|
|
|
|
void Playlist::slotGuessTagInfo(TagGuesser::Type type)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KApplication::setOverrideCursor(TQt::waitCursor);
|
|
|
|
TDEApplication::setOverrideCursor(TQt::waitCursor);
|
|
|
|
PlaylistItemList items = selectedItems();
|
|
|
|
PlaylistItemList items = selectedItems();
|
|
|
|
setDynamicListsFrozen(true);
|
|
|
|
setDynamicListsFrozen(true);
|
|
|
|
|
|
|
|
|
|
|
@ -898,7 +898,7 @@ void Playlist::slotGuessTagInfo(TagGuesser::Type type)
|
|
|
|
|
|
|
|
|
|
|
|
dataChanged();
|
|
|
|
dataChanged();
|
|
|
|
setDynamicListsFrozen(false);
|
|
|
|
setDynamicListsFrozen(false);
|
|
|
|
KApplication::restoreOverrideCursor();
|
|
|
|
TDEApplication::restoreOverrideCursor();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Playlist::slotReload()
|
|
|
|
void Playlist::slotReload()
|
|
|
@ -1161,7 +1161,7 @@ void Playlist::keyPressEvent(TQKeyEvent *event)
|
|
|
|
TQListViewItemIterator visible(this, TQListViewItemIterator::IteratorFlag(
|
|
|
|
TQListViewItemIterator visible(this, TQListViewItemIterator::IteratorFlag(
|
|
|
|
TQListViewItemIterator::Visible));
|
|
|
|
TQListViewItemIterator::Visible));
|
|
|
|
if(selected.current() == visible.current())
|
|
|
|
if(selected.current() == visible.current())
|
|
|
|
KApplication::postEvent(parent(), new FocusUpEvent);
|
|
|
|
TDEApplication::postEvent(parent(), new FocusUpEvent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1353,7 +1353,7 @@ void Playlist::addFiles(const TQStringList &files, PlaylistItem *after)
|
|
|
|
if(!after)
|
|
|
|
if(!after)
|
|
|
|
after = static_cast<PlaylistItem *>(lastItem());
|
|
|
|
after = static_cast<PlaylistItem *>(lastItem());
|
|
|
|
|
|
|
|
|
|
|
|
KApplication::setOverrideCursor(TQt::waitCursor);
|
|
|
|
TDEApplication::setOverrideCursor(TQt::waitCursor);
|
|
|
|
|
|
|
|
|
|
|
|
m_blockDataChanged = true;
|
|
|
|
m_blockDataChanged = true;
|
|
|
|
|
|
|
|
|
|
|
@ -1370,7 +1370,7 @@ void Playlist::addFiles(const TQStringList &files, PlaylistItem *after)
|
|
|
|
slotWeightDirty();
|
|
|
|
slotWeightDirty();
|
|
|
|
dataChanged();
|
|
|
|
dataChanged();
|
|
|
|
|
|
|
|
|
|
|
|
KApplication::restoreOverrideCursor();
|
|
|
|
TDEApplication::restoreOverrideCursor();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Playlist::refreshAlbums(const PlaylistItemList &items, coverKey id)
|
|
|
|
void Playlist::refreshAlbums(const PlaylistItemList &items, coverKey id)
|
|
|
|