Commit 7a5ec339 authored by Scott Wheeler's avatar Scott Wheeler

A fair point -- use the same shortcut to show and hide the main window.

CCMAIL:71555@bugs.kde.org

svn path=/trunk/kdemultimedia/juk/; revision=293960
parent 110120c5
......@@ -370,8 +370,7 @@ void JuK::setupGlobalAccels()
KeyDialog::insert(m_accel, "VolumeUp", i18n("Volume Up"), action("volumeUp"), SLOT(activate()));
KeyDialog::insert(m_accel, "VolumeDown", i18n("Volume Down"), action("volumeDown"), SLOT(activate()));
KeyDialog::insert(m_accel, "Mute", i18n("Mute"), action("mute"), SLOT(activate()));
KeyDialog::insert(m_accel, "Show", i18n("Show"), this, SLOT(show()));
KeyDialog::insert(m_accel, "Hide", i18n("Hide"), this, SLOT(hide()));
KeyDialog::insert(m_accel, "ShowHide", i18n("Show / Hide"), this, SLOT(slotShowHide()));
m_accel->setConfigGroup("Shortcuts");
m_accel->readSettings();
......@@ -577,6 +576,11 @@ KAction *JuK::createSplitterAction(const QString &text, const char *slot,
// private slot definitions
////////////////////////////////////////////////////////////////////////////////
void JuK::slotShowHide()
{
setShown(!isShown());
}
void JuK::slotPlaylistChanged()
{
if(m_splitter->collectionListSelected() ||
......
......@@ -108,6 +108,12 @@ private:
const KShortcut &shortcut = KShortcut());
private slots:
/**
* Toggles the shown / hidden state of the main window.
*/
void slotShowHide();
void slotPlaylistChanged();
// file menu
......
......@@ -64,11 +64,7 @@ const KeyDialog::KeyInfo KeyDialog::keyInfo[] = {
{ { KShortcut::null(), KShortcut::null() },
{ Qt::CTRL+Qt::ALT+Qt::Key_M, KKey::QtWIN+Qt::ALT+Qt::Key_M },
{ Qt::Key_VolumeMute, Qt::Key_VolumeMute } } },
{ "Show",
{ { KShortcut::null(), KShortcut::null() },
{ KShortcut::null(), KShortcut::null() },
{ KShortcut::null(), KShortcut::null() } } },
{ "Hide",
{ "ShowHide",
{ { KShortcut::null(), KShortcut::null() },
{ KShortcut::null(), KShortcut::null() },
{ KShortcut::null(), KShortcut::null() } } }
......
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