Classified ads
Public Member Functions | Private Attributes | List of all members
CallButtonDelegate Class Reference

class for displaying button inside table view More...

#include <callbuttondelegate.h>

Inheritance diagram for CallButtonDelegate:
Inheritance graph
[legend]
Collaboration diagram for CallButtonDelegate:
Collaboration graph
[legend]

Public Member Functions

 CallButtonDelegate (VoiceCallEngine &aCallEngine, QObject *aParent=NULL)
 
 ~CallButtonDelegate ()
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
bool editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
 

Private Attributes

VoiceCallEngineiCallEngine
 

Detailed Description

class for displaying button inside table view

Constructor & Destructor Documentation

CallButtonDelegate::CallButtonDelegate ( VoiceCallEngine aCallEngine,
QObject *  aParent = NULL 
)

Constructor

Parameters
aCallEngineis datamodel where call data comes from.
aParentJust parent object.
CallButtonDelegate::~CallButtonDelegate ( )

destructor

Member Function Documentation

bool CallButtonDelegate::editorEvent ( QEvent *  event,
QAbstractItemModel *  model,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
)
void CallButtonDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Painter, overridden from QItemDelegate

Member Data Documentation

VoiceCallEngine& CallButtonDelegate::iCallEngine
private

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