From 06bdda5257f02147281986914360dd3a8f706cbd Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 22 Mar 2009 12:59:34 +0000 Subject: some hotkey fixes git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@866 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/eqwidget.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/ui/eqwidget.cpp') 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(parent())->playlist(), &event); +} -- cgit v1.2.3-13-gbd6f