CycloBranch
cMultipleButtonDelegate Class Reference

A delegate to create multiple buttons. More...

#include <cMultipleButtonDelegate.h>

Inheritance diagram for cMultipleButtonDelegate:

Public Member Functions

 cMultipleButtonDelegate (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 multiple buttons.

Constructor & Destructor Documentation

◆ cMultipleButtonDelegate()

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

The constructor.

Parameters
parentpointer to a parent widget

Member Function Documentation

◆ displayText()

QString cMultipleButtonDelegate::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 cMultipleButtonDelegate::editorEvent ( QEvent *  event,
QAbstractItemModel *  model,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
)
protected

Reimplementation of editorEvent.

Parameters
eventQEvent
modelQAbstractItemModel
optionQStyleOptionViewItem
indexQModelIndex

◆ paint()

void cMultipleButtonDelegate::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: