The NonEmptyDelegate class provides functionality to ensure that table cells are not empty.
More...
#include <nonemptydelegate.h>
|
| NonEmptyDelegate (QObject *parent=nullptr) |
| Constructs a NonEmptyDelegate object with the given parent.
|
|
void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override |
| Sets the model data based on the data of the editor widget.
|
|
The NonEmptyDelegate class provides functionality to ensure that table cells are not empty.
◆ NonEmptyDelegate()
NonEmptyDelegate::NonEmptyDelegate |
( |
QObject * |
parent = nullptr | ) |
|
|
inline |
◆ setModelData()
void NonEmptyDelegate::setModelData |
( |
QWidget * |
editor, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
inlineoverride |
Sets the model data based on the data of the editor widget.
- Parameters
-
editor | The editor widget. |
model | The abstract item model. |
index | The model index of the item. |