Commit e10a9d88 authored by Stephan Kulow's avatar Stephan Kulow

removed deprecated usages of KToggleAction

svn path=/trunk/KDE/kdemultimedia/juk/; revision=539944
parent 395c0efa
...@@ -894,11 +894,11 @@ PlaylistCollection::ActionHandler::ActionHandler(PlaylistCollection *collection) ...@@ -894,11 +894,11 @@ PlaylistCollection::ActionHandler::ActionHandler(PlaylistCollection *collection)
SLOT(slotShowCoverManager()), "showCoverManager")); SLOT(slotShowCoverManager()), "showCoverManager"));
KToggleAction *historyAction = KToggleAction *historyAction =
new KToggleAction(i18n("Show &History"), "history", 0, actions(), "showHistory"); new KToggleAction(KIcon("history"), i18n("Show &History"), actions(), "showHistory");
historyAction->setCheckedState(i18n("Hide &History")); historyAction->setCheckedState(i18n("Hide &History"));
KToggleAction *upcomingAction = KToggleAction *upcomingAction =
new KToggleAction(i18n("Show &Play Queue"), "today", 0, actions(), "showUpcoming"); new KToggleAction(KIcon("today"), i18n("Show &Play Queue"), actions(), "showUpcoming");
upcomingAction->setCheckedState(i18n("Hide &Play Queue")); upcomingAction->setCheckedState(i18n("Hide &Play Queue"));
connect(action<KToggleAction>("showHistory"), SIGNAL(toggled(bool)), connect(action<KToggleAction>("showHistory"), SIGNAL(toggled(bool)),
......
...@@ -120,7 +120,7 @@ Playlist *PlaylistSplitter::visiblePlaylist() const ...@@ -120,7 +120,7 @@ Playlist *PlaylistSplitter::visiblePlaylist() const
void PlaylistSplitter::setupActions() void PlaylistSplitter::setupActions()
{ {
KToggleAction *showSearch = KToggleAction *showSearch =
new KToggleAction(i18n("Show &Search Bar"), "filefind", 0, ActionCollection::actions(), "showSearch"); new KToggleAction(KIcon("filefind"), i18n("Show &Search Bar"), ActionCollection::actions(), "showSearch");
showSearch->setCheckedState(i18n("Hide &Search Bar")); showSearch->setCheckedState(i18n("Hide &Search Bar"));
KAction *act = new KAction(KIcon("edit_clear"), i18n("Edit Track Search"), ActionCollection::actions(), "editTrackSearch"); KAction *act = new KAction(KIcon("edit_clear"), i18n("Edit Track Search"), ActionCollection::actions(), "editTrackSearch");
...@@ -204,7 +204,7 @@ void PlaylistSplitter::readConfig() ...@@ -204,7 +204,7 @@ void PlaylistSplitter::readConfig()
bool showSearch = config.readEntry("ShowSearch", true); bool showSearch = config.readEntry("ShowSearch", true);
ActionCollection::action<KToggleAction>("showSearch")->setChecked(showSearch); ActionCollection::action<KToggleAction>("showSearch")->setChecked(showSearch);
m_searchWidget->setShown(showSearch); m_searchWidget->setHidden(!showSearch);
} }
void PlaylistSplitter::saveConfig() void PlaylistSplitter::saveConfig()
......
...@@ -490,7 +490,7 @@ void TagEditor::saveConfig() ...@@ -490,7 +490,7 @@ void TagEditor::saveConfig()
void TagEditor::setupActions() void TagEditor::setupActions()
{ {
KToggleAction *show = new KToggleAction(i18n("Show &Tag Editor"), "edit", 0, ActionCollection::actions(), "showEditor"); KToggleAction *show = new KToggleAction(KIcon("edit"), i18n("Show &Tag Editor"), ActionCollection::actions(), "showEditor");
show->setCheckedState(i18n("Hide &Tag Editor")); show->setCheckedState(i18n("Hide &Tag Editor"));
connect(show, SIGNAL(toggled(bool)), this, SLOT(setShown(bool))); connect(show, SIGNAL(toggled(bool)), this, SLOT(setShown(bool)));
......
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