Commit 7957fddc authored by Scott Wheeler's avatar Scott Wheeler
Browse files

CVS_SILENT indentation cleanups

svn path=/trunk/kdemultimedia/juk/; revision=231403
parent 9ed55482
...@@ -222,7 +222,7 @@ void PlaylistBox::save(Item *item) ...@@ -222,7 +222,7 @@ void PlaylistBox::save(Item *item)
void PlaylistBox::saveAs(Item *item) void PlaylistBox::saveAs(Item *item)
{ {
kdDebug(65432) << "saveAs() - " << bool(item) << endl; // kdDebug(65432) << "saveAs() - " << bool(item) << endl;
if(item) if(item)
item->playlist()->saveAs(); item->playlist()->saveAs();
} }
...@@ -259,9 +259,9 @@ void PlaylistBox::duplicate(Item *item) ...@@ -259,9 +259,9 @@ void PlaylistBox::duplicate(Item *item)
// If this text is changed, please also change it in PlaylistSplitter::createPlaylist(). // If this text is changed, please also change it in PlaylistSplitter::createPlaylist().
QString name = KLineEditDlg::getText(i18n("New Playlist"), QString name = KLineEditDlg::getText(i18n("New Playlist"),
i18n("Please enter a name for the new playlist:"), i18n("Please enter a name for the new playlist:"),
m_splitter->uniquePlaylistName(item->text(0), true), &ok); m_splitter->uniquePlaylistName(item->text(0), true), &ok);
if(ok) { if(ok) {
Playlist *p = m_splitter->createPlaylist(name); Playlist *p = m_splitter->createPlaylist(name);
......
...@@ -183,40 +183,40 @@ TreeViewMode::~TreeViewMode() ...@@ -183,40 +183,40 @@ TreeViewMode::~TreeViewMode()
void TreeViewMode::setShown(bool show) void TreeViewMode::setShown(bool show)
{ {
playlistBox()->setRootIsDecorated(show);
if(show) { if(show) {
updateIcons(16); updateIcons(16);
PlaylistBox::Item *collectionItem = PlaylistBox::Item::collectionItem(); PlaylistBox::Item *collectionItem = PlaylistBox::Item::collectionItem();
if(!collectionItem) if(!collectionItem)
kdDebug(65432) << "TreeViewMode::setShown() - the CollectionList isn't initialized yet." << endl; kdDebug(65432) << "TreeViewMode::setShown() - the CollectionList isn't initialized yet." << endl;
if(collectionItem && m_categories.isEmpty()) { if(collectionItem && m_categories.isEmpty()) {
PlaylistBox::Item *i;
PlaylistBox::Item *i; i = new PlaylistBox::Item(collectionItem, "cdimage", i18n("Artists"));
m_categories.insert("artists", i);
i = new PlaylistBox::Item(collectionItem, "cdimage", i18n("Artists"));
m_categories.insert("artists", i);
setupCategory(i, CollectionList::instance()->artists()); setupCategory(i, CollectionList::instance()->artists());
i = new PlaylistBox::Item(collectionItem, "cdimage", i18n("Albums")); i = new PlaylistBox::Item(collectionItem, "cdimage", i18n("Albums"));
m_categories.insert("albums", i); m_categories.insert("albums", i);
setupCategory(i, CollectionList::instance()->albums()); setupCategory(i, CollectionList::instance()->albums());
for(QDictIterator<PlaylistBox::Item> it(m_categories); it.current(); ++it) for(QDictIterator<PlaylistBox::Item> it(m_categories); it.current(); ++it)
it.current()->setSortedFirst(true); it.current()->setSortedFirst(true);
} }
else { else {
for(QDictIterator<PlaylistBox::Item> it(m_categories); it.current(); ++it) for(QDictIterator<PlaylistBox::Item> it(m_categories); it.current(); ++it)
it.current()->setVisible(true); it.current()->setVisible(true);
} }
} }
else { else {
for(QDictIterator<PlaylistBox::Item> it(m_categories); it.current(); ++it) for(QDictIterator<PlaylistBox::Item> it(m_categories); it.current(); ++it)
it.current()->setVisible(false); it.current()->setVisible(false);
} }
playlistBox()->setRootIsDecorated(show);
} }
void TreeViewMode::setupCategory(PlaylistBox::Item *parent, const QStringList &members) const void TreeViewMode::setupCategory(PlaylistBox::Item *parent, const QStringList &members) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment