Commit 03ee2e23 authored by Scott Wheeler's avatar Scott Wheeler

Add a couple more icons where appropriate.

svn path=/trunk/kdemultimedia/juk/; revision=304028
parent 0f7466f3
......@@ -169,8 +169,8 @@ void JuK::setupActions()
createSplitterAction(i18n("Open..."), SLOT(slotOpen()), "file_open", "fileopen", "CTRL+o");
createSplitterAction(i18n("Add &Folder..."), SLOT(slotOpenDirectory()), "openDirectory", "fileopen");
createSplitterAction(i18n("&Rename..."), SLOT(slotRenamePlaylist()), "renamePlaylist");
createSplitterAction(i18n("D&uplicate..."), SLOT(slotDuplicatePlaylist()), "duplicatePlaylist");
createSplitterAction(i18n("&Rename..."), SLOT(slotRenamePlaylist()), "renamePlaylist", "lineedit");
createSplitterAction(i18n("D&uplicate..."), SLOT(slotDuplicatePlaylist()), "duplicatePlaylist", "editcopy");
createSplitterAction(i18n("Save"), SLOT(slotSavePlaylist()), "file_save", "filesave", "CTRL+s");
createSplitterAction(i18n("Save As..."), SLOT(slotSaveAsPlaylist()), "file_save_as", "filesaveas");
createSplitterAction(i18n("R&emove"), SLOT(slotDeletePlaylist()), "deleteItemPlaylist", "edittrash");
......
......@@ -70,8 +70,8 @@ PlaylistBox::PlaylistBox(PlaylistSplitter *parent, const QString &name) :
// add the view modes stuff
m_viewModeAction = new KSelectAction(actions(), "viewModeMenu");
m_viewModeAction->setText(i18n("View Modes"));
m_viewModeAction = new KSelectAction(i18n("View Modes"), "view_choose",
KShortcut(), actions(), "viewModeMenu");
m_viewModes.append(new ViewMode(this));
m_viewModes.append(new CompactViewMode(this));
......@@ -79,11 +79,16 @@ PlaylistBox::PlaylistBox(PlaylistSplitter *parent, const QString &name) :
QStringList modeNames;
QValueListIterator<ViewMode *> it = m_viewModes.begin();
for(; it != m_viewModes.end(); ++it)
for(QValueListIterator<ViewMode *> it = m_viewModes.begin(); it != m_viewModes.end(); ++it)
modeNames.append((*it)->name());
m_viewModeAction->setItems(modeNames);
QPopupMenu *p = m_viewModeAction->popupMenu();
p->changeItem(0, SmallIconSet("view_detailed"), modeNames[0]);
p->changeItem(1, SmallIconSet("view_text"), modeNames[1]);
p->changeItem(2, SmallIconSet("view_tree"), modeNames[2]);
m_viewModeAction->setCurrentItem(m_viewModeIndex);
m_viewModes[m_viewModeIndex]->setShown(true);
......
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