A delegate to create multiple buttons.
More...
#include <cMultipleButtonDelegate.h>
|
| | 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...
|
| |
|
| bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) |
| | Reimplementation of editorEvent. More...
|
| |
A delegate to create multiple buttons.
◆ cMultipleButtonDelegate()
| cMultipleButtonDelegate::cMultipleButtonDelegate |
( |
QObject * |
parent = (QObject *)0 | ) |
|
The constructor.
- Parameters
-
| parent | pointer to a parent widget |
◆ displayText()
| QString cMultipleButtonDelegate::displayText |
( |
const QVariant & |
value, |
|
|
const QLocale & |
locale |
|
) |
| const |
Reimplementation of displayText.
- Parameters
-
| value | a value |
| locale | a locale |
- Return values
-
| QString | the value as a string |
◆ editorEvent()
| bool cMultipleButtonDelegate::editorEvent |
( |
QEvent * |
event, |
|
|
QAbstractItemModel * |
model, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
protected |
Reimplementation of editorEvent.
- Parameters
-
| event | QEvent |
| model | QAbstractItemModel |
| option | QStyleOptionViewItem |
| index | QModelIndex |
◆ paint()
| void cMultipleButtonDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Reimplementation of paint.
- Parameters
-
| painter | QPainter |
| option | QStyleOptionViewItem |
| index | QModelIndex |
The documentation for this class was generated from the following files: