Commit 77a800dd authored by Scott Wheeler's avatar Scott Wheeler

Moved the toggle slot to just using the one in PlaylistSplitter. This will

allow the toggling to be done from the view menu, which will be the next
commit.

svn path=/trunk/kdemultimedia/juk/; revision=207414
parent 1bbec389
......@@ -291,17 +291,6 @@ void Playlist::clear()
clearItems(selectedItems());
}
void Playlist::slotToggleColumnVisible(int column, bool emitSignal)
{
if(isColumnVisible(column))
hideColumn(column);
else
showColumn(column);
if(emitSignal)
emit signalToggleColumnVisible(column);
}
////////////////////////////////////////////////////////////////////////////////
// protected members
////////////////////////////////////////////////////////////////////////////////
......@@ -502,7 +491,7 @@ void Playlist::setup()
headerMenu->setItemChecked(i, true);
}
connect(headerMenu, SIGNAL(activated(int)), this, SLOT(slotToggleColumnVisible(int)));
connect(headerMenu, SIGNAL(activated(int)), this, SIGNAL(signalToggleColumnVisible(int)));
//////////////////////////////////////////////////
// setup playlist RMB menu
......
......@@ -197,7 +197,6 @@ private slots:
void showRMBMenu(QListViewItem *item, const QPoint &point, int column);
void applyTags(QListViewItem *item, const QString &text, int column);
void renameTag();
void slotToggleColumnVisible(int column, bool emitSignal = true);
private:
int currentColumn;
......
......@@ -607,6 +607,8 @@ void PlaylistSplitter::playlistItemRemoved(PlaylistItem *item)
void PlaylistSplitter::slotToggleColumnVisible(int column)
{
_visibleColumns[column] = ! _visibleColumns[column];
if(visiblePlaylist())
setupColumns(visiblePlaylist());
}
#include "playlistsplitter.moc"
......@@ -224,6 +224,8 @@ public slots:
void duplicatePlaylist() { playlistBox->duplicate(); }
void deleteItemPlaylist() { playlistBox->deleteItem(); }
void slotToggleColumnVisible(int column);
signals:
void doubleClicked();
void listBoxDoubleClicked();
......@@ -277,8 +279,6 @@ private slots:
*/
void playlistItemRemoved(PlaylistItem *item);
void slotToggleColumnVisible(int column);
private:
PlaylistItem *playingItem;
PlaylistBox *playlistBox;
......
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