Miam-Player  0.8.0
A nice music player
PlaylistHeaderView Class Reference

The PlaylistHeaderView class. More...

#include <playlistheaderview.h>

Inheritance diagram for PlaylistHeaderView:

Public Member Functions

 PlaylistHeaderView (Playlist *parent)
 
void setFont (const QFont &newFont)
 
virtual void setModel (QAbstractItemModel *model) override
 

Static Public Attributes

static QStringList labels
 

Protected Member Functions

virtual void changeEvent (QEvent *event) override
 
virtual void contextMenuEvent (QContextMenuEvent *event) override
 
virtual void paintEvent (QPaintEvent *) override
 
virtual QSize sectionSizeFromContents (int logicalIndex) const override
 

Detailed Description

The PlaylistHeaderView class.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

PlaylistHeaderView::PlaylistHeaderView ( Playlist parent)
explicit

Member Function Documentation

void PlaylistHeaderView::changeEvent ( QEvent *  event)
overrideprotectedvirtual

Redefined for dynamic translation.

void PlaylistHeaderView::contextMenuEvent ( QContextMenuEvent *  event)
overrideprotectedvirtual

Redefined.

void PlaylistHeaderView::paintEvent ( QPaintEvent *  )
overrideprotectedvirtual

Redefined.

QSize PlaylistHeaderView::sectionSizeFromContents ( int  logicalIndex) const
overrideprotectedvirtual
void PlaylistHeaderView::setFont ( const QFont &  newFont)

Redefined to initialize values from settings.

void PlaylistHeaderView::setModel ( QAbstractItemModel *  model)
overridevirtual

Redefined.

Member Data Documentation

QStringList PlaylistHeaderView::labels
static
Initial value:
= QStringList() << "#"
<< QT_TRANSLATE_NOOP("PlaylistHeaderView", "Title")
<< QT_TRANSLATE_NOOP("PlaylistHeaderView", "Album")
<< QT_TRANSLATE_NOOP("PlaylistHeaderView", "Length")
<< QT_TRANSLATE_NOOP("PlaylistHeaderView", "Artist")
<< QT_TRANSLATE_NOOP("PlaylistHeaderView", "Rating")
<< QT_TRANSLATE_NOOP("PlaylistHeaderView", "Year")
<< QT_TRANSLATE_NOOP("PlaylistHeaderView", "Source")
<< "TrackDAO"

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