Songbook-Client  0.7
This application is a manager of customguitar songbooks
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Member Functions
CSongItemDelegate Class Reference

CSongItemDelegate draws items from CLibraryView. More...

#include <song-item-delegate.hh>

List of all members.

Public Member Functions

 CSongItemDelegate (QObject *parent=0)
 Constructor.
 ~CSongItemDelegate ()
 Destructor.
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const

Detailed Description

CSongItemDelegate draws items from CLibraryView.

Items are rows corresponding to a song and are composed of several columns for title, artist, album, language etc.


Member Function Documentation

void CSongItemDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
virtual

Draws the song item at position index.

QSize CSongItemDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
virtual

Returns a fixed size hint for columns 2 and 5 (lilypond and language columns).


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