Miam-Player  0.8.0
A nice music player
LibraryScrollBar Class Reference

The LibraryScrollBar class is used to hide covers when scrolling. More...

#include <libraryscrollbar.h>

Inheritance diagram for LibraryScrollBar:
ScrollBar

Signals

void aboutToDisplayItemDelegate (bool)
 

Public Member Functions

 LibraryScrollBar (QWidget *parent)
 
- Public Member Functions inherited from ScrollBar
 ScrollBar (Qt::Orientation orientation, QWidget *parent=nullptr)
 
void setFrameBorder (bool top, bool left, bool bottom, bool right)
 

Protected Member Functions

virtual void mouseMoveEvent (QMouseEvent *e) override
 
virtual void mousePressEvent (QMouseEvent *e) override
 
virtual void mouseReleaseEvent (QMouseEvent *e) override
 
- Protected Member Functions inherited from ScrollBar
virtual void paintEvent (QPaintEvent *e) override
 

Detailed Description

The LibraryScrollBar class is used to hide covers when scrolling.

When covers are enabled and scroolling onto a large library, it can produce lags. It happens because covers are lazily loaded so accessing to the hard drive needs to be done. In order to improve user experience, it's better to temporarily disable these covers when one is using this vertical scroll bar.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

LibraryScrollBar::LibraryScrollBar ( QWidget *  parent)
explicit

Member Function Documentation

void LibraryScrollBar::aboutToDisplayItemDelegate ( bool  )
signal

Tell the view to toggle covers.

void LibraryScrollBar::mouseMoveEvent ( QMouseEvent *  e)
overrideprotectedvirtual

Redefined to temporarily hide covers when moving.

void LibraryScrollBar::mousePressEvent ( QMouseEvent *  e)
overrideprotectedvirtual

Redefined to temporarily hide covers when moving.

Reimplemented from ScrollBar.

void LibraryScrollBar::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotectedvirtual

Redefined to restore covers when move events are finished.

Reimplemented from ScrollBar.


The documentation for this class was generated from the following files: