Commit 60265d7c authored by Scott Wheeler's avatar Scott Wheeler
Browse files

patch from Mark Hillary to make the mouse wheel go forward or back tracks

when used over the systray icon.  Thanks Mark!

CCMAIL:58019-done@bugs.kde.org

svn path=/trunk/kdemultimedia/juk/; revision=223565
parent 35fa762c
......@@ -167,6 +167,16 @@ void SystemTray::setToolTip(const QString &tip)
QToolTip::add(this, tip);
}
void SystemTray::wheelEvent(QWheelEvent *e)
{
if(e->delta() > 0)
m_backAction->activate();
else
m_forwardAction->activate();
e->accept();
}
#include "systemtray.moc"
// vim: ts=8
......@@ -41,6 +41,7 @@ public slots:
void slotStop();
private:
virtual void wheelEvent( QWheelEvent *e);
void createPopup(const QString &songName, bool addButtons = true);
void setToolTip(const QString &tip = QString::null);
QPixmap createPixmap(const QString &pixName);
......
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