NeTrainSim 0.1.1 beta
The Open-Source Network Trains Simulator
 
Loading...
Searching...
No Matches
NonEmptyDelegate Class Reference

The NonEmptyDelegate class provides functionality to ensure that table cells are not empty. More...

#include <nonemptydelegate.h>

Inheritance diagram for NonEmptyDelegate:

Public Member Functions

 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.
 

Detailed Description

The NonEmptyDelegate class provides functionality to ensure that table cells are not empty.

Constructor & Destructor Documentation

◆ NonEmptyDelegate()

NonEmptyDelegate::NonEmptyDelegate ( QObject *  parent = nullptr)
inline

Constructs a NonEmptyDelegate object with the given parent.

Parameters
parentThe parent object.

Member Function Documentation

◆ 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
editorThe editor widget.
modelThe abstract item model.
indexThe model index of the item.