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

CVS_SILENT indentation cleanups

svn path=/trunk/kdemultimedia/juk/; revision=231403
parent 9ed55482
......@@ -222,7 +222,7 @@ void PlaylistBox::save(Item *item)
void PlaylistBox::saveAs(Item *item)
{
kdDebug(65432) << "saveAs() - " << bool(item) << endl;
// kdDebug(65432) << "saveAs() - " << bool(item) << endl;
if(item)
item->playlist()->saveAs();
}
......@@ -259,9 +259,9 @@ void PlaylistBox::duplicate(Item *item)
// If this text is changed, please also change it in PlaylistSplitter::createPlaylist().
QString name = KLineEditDlg::getText(i18n("New Playlist"),
i18n("Please enter a name for the new playlist:"),
m_splitter->uniquePlaylistName(item->text(0), true), &ok);
QString name = KLineEditDlg::getText(i18n("New Playlist"),
i18n("Please enter a name for the new playlist:"),
m_splitter->uniquePlaylistName(item->text(0), true), &ok);
if(ok) {
Playlist *p = m_splitter->createPlaylist(name);
......
......@@ -183,40 +183,40 @@ TreeViewMode::~TreeViewMode()
void TreeViewMode::setShown(bool show)
{
playlistBox()->setRootIsDecorated(show);
if(show) {
updateIcons(16);
updateIcons(16);
PlaylistBox::Item *collectionItem = PlaylistBox::Item::collectionItem();
PlaylistBox::Item *collectionItem = PlaylistBox::Item::collectionItem();
if(!collectionItem)
kdDebug(65432) << "TreeViewMode::setShown() - the CollectionList isn't initialized yet." << endl;
if(!collectionItem)
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());
i = new PlaylistBox::Item(collectionItem, "cdimage", i18n("Albums"));
m_categories.insert("albums", i);
i = new PlaylistBox::Item(collectionItem, "cdimage", i18n("Albums"));
m_categories.insert("albums", i);
setupCategory(i, CollectionList::instance()->albums());
for(QDictIterator<PlaylistBox::Item> it(m_categories); it.current(); ++it)
it.current()->setSortedFirst(true);
}
else {
for(QDictIterator<PlaylistBox::Item> it(m_categories); it.current(); ++it)
it.current()->setVisible(true);
for(QDictIterator<PlaylistBox::Item> it(m_categories); it.current(); ++it)
it.current()->setSortedFirst(true);
}
else {
for(QDictIterator<PlaylistBox::Item> it(m_categories); it.current(); ++it)
it.current()->setVisible(true);
}
}
else {
for(QDictIterator<PlaylistBox::Item> it(m_categories); it.current(); ++it)
it.current()->setVisible(false);
for(QDictIterator<PlaylistBox::Item> it(m_categories); it.current(); ++it)
it.current()->setVisible(false);
}
playlistBox()->setRootIsDecorated(show);
}
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