Commit 2cb994d6 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Playlist: fix scrolling events in selector

Close #4092
parent aa446d2c
......@@ -530,3 +530,9 @@ void PLSelector::getCurrentSelectedItem( int* type, QString *string)
*type = currentItem()->data( 0, TYPE_ROLE ).toInt();
*string = currentItem()->data( 0, NAME_ROLE ).toString();
}
void PLSelector::wheelEvent( QWheelEvent *e )
{
// Accept this event in order to prevent unwanted volume up/down changes
e->accept();
}
......@@ -123,6 +123,7 @@ protected:
virtual void dragMoveEvent ( QDragMoveEvent * event );
virtual bool dropMimeData ( QTreeWidgetItem *, int, const QMimeData *, Qt::DropAction );
virtual QStringList mimeTypes () const;
virtual void wheelEvent(QWheelEvent *e);
private:
void createItems();
......
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