aboutsummaryrefslogtreecommitdiff
path: root/src/ui/eqwidget.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-03-22 12:59:34 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-03-22 12:59:34 +0000
commit06bdda5257f02147281986914360dd3a8f706cbd (patch)
tree56571af9f08326d85376e4a8a4d985bd86d260db /src/ui/eqwidget.cpp
parentc06ecb1cccf9b6bbfaa0a56403e8926ba974db1f (diff)
downloadqmmp-06bdda5257f02147281986914360dd3a8f706cbd.tar.gz
qmmp-06bdda5257f02147281986914360dd3a8f706cbd.tar.bz2
qmmp-06bdda5257f02147281986914360dd3a8f706cbd.zip
some hotkey fixes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@866 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/eqwidget.cpp')
-rw-r--r--src/ui/eqwidget.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ui/eqwidget.cpp b/src/ui/eqwidget.cpp
index bc9f96467..efcef55db 100644
--- a/src/ui/eqwidget.cpp
+++ b/src/ui/eqwidget.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2006-2008 by Ilya Kotov *
+ * Copyright (C) 2006-2009 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -396,7 +396,6 @@ void EqWidget::importWinampEQF()
file.read (header, 31);
if (QString::fromAscii(header).contains("Winamp EQ library file v1.1"))
{
-
while (file.read (name, 257))
{
EQPreset* preset = new EQPreset;
@@ -411,8 +410,14 @@ void EqWidget::importWinampEQF()
preset->setPreamp(20 - bands[10]*40/64);
m_presets.append(preset);
}
-
}
file.close();
}
+
+void EqWidget::keyPressEvent (QKeyEvent *ke)
+{
+ QKeyEvent event = QKeyEvent(ke->type(), ke->key(),
+ ke->modifiers(), ke->text(),ke->isAutoRepeat(), ke->count());
+ QApplication::sendEvent(qobject_cast<MainWindow*>(parent())->playlist(), &event);
+}