Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

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