CycloBranch
cViewButtonDelegate Class Reference

A delegate to create a reference view button. More...

#include <cViewButtonDelegate.h>

Inheritance diagram for cViewButtonDelegate:

Public Member Functions

 cViewButtonDelegate (QObject *parent=(QObject *) 0)
 The constructor. More...
 
QString displayText (const QVariant &value, const QLocale &locale) const
 Reimplementation of displayText. More...
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Reimplementation of paint. More...
 

Protected Member Functions

bool editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
 Reimplementation of editorEvent. More...
 

Detailed Description

A delegate to create a reference view button.

Constructor & Destructor Documentation

◆ cViewButtonDelegate()

cViewButtonDelegate::cViewButtonDelegate ( QObject *  parent = (QObject *)0)

The constructor.

Parameters
parentpointer to a parent widget

Member Function Documentation

◆ displayText()

QString cViewButtonDelegate::displayText ( const QVariant &  value,
const QLocale &  locale 
) const

Reimplementation of displayText.

Parameters
valuea value
localea locale
Return values
QStringthe value as a string

◆ editorEvent()

bool cViewButtonDelegate::editorEvent ( QEvent *  event,
QAbstractItemModel *  model,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
)
protected

Reimplementation of editorEvent.

Parameters
eventQEvent
modelQAbstractItemModel
optionQStyleOptionViewItem
indexQModelIndex

◆ paint()

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

Reimplementation of paint.

Parameters
painterQPainter
optionQStyleOptionViewItem
indexQModelIndex

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