Commit 4f84ec3b authored by Scott Wheeler's avatar Scott Wheeler

CVS_SILENT API nitpicks

svn path=/trunk/kdemultimedia/juk/; revision=266756
parent 9f48ac06
......@@ -906,7 +906,7 @@ void Playlist::polish()
connect(this, SIGNAL(contextMenuRequested(QListViewItem *, const QPoint &, int)),
this, SLOT(slotShowRMBMenu(QListViewItem *, const QPoint &, int)));
connect(this, SIGNAL(itemRenamed(QListViewItem *, const QString &, int)),
this, SLOT(slotApplyModification(QListViewItem *, const QString &, int)));
this, SLOT(slotInlineEditDone(QListViewItem *, const QString &, int)));
connect(header(), SIGNAL(sizeChange(int, int, int)),
this, SLOT(slotColumnSizeChanged(int, int, int)));
......@@ -1323,7 +1323,7 @@ void Playlist::slotRenameTag()
rename(currentItem(), m_currentColumn);
}
void Playlist::applyTag(PlaylistItem *item, const QString &text, int column)
void Playlist::editTag(PlaylistItem *item, const QString &text, int column)
{
switch(column - columnOffset())
{
......@@ -1361,7 +1361,7 @@ void Playlist::applyTag(PlaylistItem *item, const QString &text, int column)
item->slotRefresh();
}
void Playlist::slotApplyModification(QListViewItem *, const QString &, int column)
void Playlist::slotInlineEditDone(QListViewItem *, const QString &, int column)
{
QString text = renameLineEdit()->text();
......@@ -1379,7 +1379,7 @@ void Playlist::slotApplyModification(QListViewItem *, const QString &, int colum
}
for(PlaylistItemList::ConstIterator it = l.begin(); it != l.end(); ++it) {
applyTag(*it, text, column);
editTag(*it, text, column);
kapp->processEvents();
}
slotEmitSelected();
......
......@@ -483,9 +483,10 @@ private:
void loadFile(const QString &fileName, const QFileInfo &fileInfo);
/**
* Save the tag for an individual item.
* Writes \a text to \a item in \a column. This is used by the inline tag
* editor.
*/
void applyTag(PlaylistItem *item, const QString &text, int column);
void editTag(PlaylistItem *item, const QString &text, int column);
/**
* Returns the index of the left most visible column in the playlist.
......@@ -532,11 +533,12 @@ private slots:
void slotShowRMBMenu(QListViewItem *item, const QPoint &point, int column);
/**
* This slot applys the tag for a specific item.
* This slot is called when the inline tag editor has completed its editing
* and starts the process of renaming the values.
*
* \see applyTag()
* \see editTag()
*/
void slotApplyModification(QListViewItem *, const QString &, int column);
void slotInlineEditDone(QListViewItem *, const QString &, int column);
/**
* This starts the renaming process by displaying a line edit if the mouse is in
......
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