aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-11-06 11:39:10 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-11-06 11:39:10 +0000
commit39f5faf2f59b138702d9107bdc5cfcc56adb4736 (patch)
tree0325bb8c10a14f83812a3468e32bd2191b7edac7 /src/plugins/General
parente554d6284bb4f4e3618218ecd743518c87ebab6a (diff)
downloadqmmp-39f5faf2f59b138702d9107bdc5cfcc56adb4736.tar.gz
qmmp-39f5faf2f59b138702d9107bdc5cfcc56adb4736.tar.bz2
qmmp-39f5faf2f59b138702d9107bdc5cfcc56adb4736.zip
hotkey plugin: added 'mute' action
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3872 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General')
-rw-r--r--src/plugins/General/hotkey/hotkeymanager.h3
-rw-r--r--src/plugins/General/hotkey/hotkeymanager_x11.cpp1
-rw-r--r--src/plugins/General/hotkey/settingsdialog.cpp1
3 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/General/hotkey/hotkeymanager.h b/src/plugins/General/hotkey/hotkeymanager.h
index f892d0969..e464adce9 100644
--- a/src/plugins/General/hotkey/hotkeymanager.h
+++ b/src/plugins/General/hotkey/hotkeymanager.h
@@ -48,7 +48,8 @@ public:
VOLUME_DOWN,
FORWARD,
REWIND,
- JUMP_TO_TRACK
+ JUMP_TO_TRACK,
+ VOLUME_MUTE
};
Hotkey()
diff --git a/src/plugins/General/hotkey/hotkeymanager_x11.cpp b/src/plugins/General/hotkey/hotkeymanager_x11.cpp
index 0b90c6c13..1e9f8ff22 100644
--- a/src/plugins/General/hotkey/hotkeymanager_x11.cpp
+++ b/src/plugins/General/hotkey/hotkeymanager_x11.cpp
@@ -74,6 +74,7 @@ quint32 Hotkey::defaultKey(int act)
keyMap[FORWARD] = 0;
keyMap[REWIND] = 0;
keyMap[JUMP_TO_TRACK] = 0;
+ keyMap[VOLUME_MUTE] = XF86XK_AudioMute;
return keyMap[act];
}
diff --git a/src/plugins/General/hotkey/settingsdialog.cpp b/src/plugins/General/hotkey/settingsdialog.cpp
index 1faa503d6..29d351cb4 100644
--- a/src/plugins/General/hotkey/settingsdialog.cpp
+++ b/src/plugins/General/hotkey/settingsdialog.cpp
@@ -45,6 +45,7 @@ SettingsDialog::SettingsDialog(QWidget *parent)
ui.tableWidget->setItem(9,0, new QTableWidgetItem(tr("Forward 5 seconds")));
ui.tableWidget->setItem(10,0, new QTableWidgetItem(tr("Rewind 5 seconds")));
ui.tableWidget->setItem(11,0, new QTableWidgetItem(tr("Jump to track")));
+ ui.tableWidget->setItem(12,0, new QTableWidgetItem(tr("Mute")));
QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
settings.beginGroup("Hotkey");