Commit 93b94a55 authored by Michael Pyne's avatar Michael Pyne
Browse files

Remove setCheckedState() calls which end up leaving confusing actions such as

[ ] Show Tag Editor
or
[X] Hide Tag Editor

Now it is always like
[ ] Show Tag Editor
[X] Show Tag Editor

svn path=/trunk/KDE/kdemultimedia/juk/; revision=821004
parent 616e9589
......@@ -212,7 +212,6 @@ void JuK::setupActions()
new KToggleAction(i18n("&Resize Playlist Columns Manually"),
collection);
collection->addAction("resizeColumnsManually", resizeColumnAction);
resizeColumnAction->setCheckedState(KGuiItem(i18n("&Resize Column Headers Automatically")));
// the following are not visible by default
......@@ -250,7 +249,6 @@ void JuK::setupActions()
m_toggleSplashAction = new KToggleAction(i18n("Show Splash Screen on Startup"), collection);
collection->addAction("showSplashScreen", m_toggleSplashAction);
m_toggleSplashAction->setCheckedState(KGuiItem(i18n("Hide Splash Screen on Startup")));
m_toggleSystemTrayAction = new KToggleAction(i18n("&Dock in System Tray"), collection);
collection->addAction("toggleSystemTray", m_toggleSystemTrayAction);
m_toggleDockOnCloseAction = new KToggleAction(i18n("&Stay in System Tray on Close"), collection);
......
......@@ -919,12 +919,10 @@ PlaylistCollection::ActionHandler::ActionHandler(PlaylistCollection *collection)
KToggleAction *historyAction =
new KToggleAction(KIcon("view-history"), i18n("Show &History"), actions());
actions()->addAction("showHistory", historyAction);
historyAction->setCheckedState(KGuiItem(i18n("Hide &History")));
KToggleAction *upcomingAction =
new KToggleAction(KIcon("go-jump-today"), i18n("Show &Play Queue"), actions());
actions()->addAction("showUpcoming", upcomingAction);
upcomingAction->setCheckedState(KGuiItem(i18n("Hide &Play Queue")));
connect(historyAction, SIGNAL(triggered(bool)),
this, SLOT(slotSetHistoryPlaylistEnabled(bool)));
......
......@@ -135,8 +135,6 @@ void PlaylistSplitter::setupActions()
KToggleAction *showSearch =
new KToggleAction(KIcon("edit-find"), i18n("Show &Search Bar"), this);
coll->addAction("showSearch", showSearch);
showSearch->setCheckedState(KGuiItem(i18n("Hide &Search Bar")));
KAction *act = new KAction(KIcon("edit-clear"), i18n("Edit Track Search"), this);
coll->addAction("editTrackSearch", act);
......
......@@ -488,7 +488,6 @@ void TagEditor::setupActions()
{
KToggleAction *show = new KToggleAction(KIcon("document-properties"), i18n("Show &Tag Editor"), this);
ActionCollection::actions()->addAction("showEditor", show);
show->setCheckedState(KGuiItem(i18n("Hide &Tag Editor")));
connect(show, SIGNAL(toggled(bool)), this, SLOT(setShown(bool)));
KAction *act = new KAction(KIcon("document-save"), i18n("&Save"), this);
......
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