A delegate to create a reference view button.
More...
#include <cViewButtonDelegate.h>
|
| 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...
|
|
|
bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) |
| Reimplementation of editorEvent. More...
|
|
A delegate to create a reference view button.
◆ cViewButtonDelegate()
cViewButtonDelegate::cViewButtonDelegate |
( |
QObject * |
parent = (QObject *)0 | ) |
|
The constructor.
- Parameters
-
parent | pointer to a parent widget |
◆ displayText()
QString cViewButtonDelegate::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 cViewButtonDelegate::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 cViewButtonDelegate::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: