Miam-Player  0.8.0
A nice music player
LibraryHeader Class Reference

The LibraryHeader class is a button which can switch the LibraryTreeView from Ascending to Descending order. More...

#include <libraryheader.h>

Inheritance diagram for LibraryHeader:

Public Slots

void resetSortOrder ()
 

Signals

void aboutToChangeHierarchyOrder ()
 
void aboutToChangeSortOrder ()
 

Public Member Functions

 LibraryHeader (QWidget *parent=nullptr)
 

Protected Member Functions

virtual void contextMenuEvent (QContextMenuEvent *) override
 
virtual void leaveEvent (QEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void paintEvent (QPaintEvent *) override
 

Detailed Description

The LibraryHeader class is a button which can switch the LibraryTreeView from Ascending to Descending order.

This class also reimplements the contextMenuEvent handler to be able to display a small dialog.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

LibraryHeader::LibraryHeader ( QWidget *  parent = nullptr)
explicit

Member Function Documentation

void LibraryHeader::aboutToChangeHierarchyOrder ( )
signal

Forward signal to upper class.

void LibraryHeader::aboutToChangeSortOrder ( )
signal
void LibraryHeader::contextMenuEvent ( QContextMenuEvent *  e)
overrideprotectedvirtual

Reimplemented to display a dialog to with 4 hierarchies available to the user.

void LibraryHeader::leaveEvent ( QEvent *  event)
overrideprotectedvirtual
void LibraryHeader::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedvirtual
void LibraryHeader::paintEvent ( QPaintEvent *  )
overrideprotectedvirtual

XXX: improve this

void LibraryHeader::resetSortOrder ( )
inlineslot

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