DynExp
Highly flexible laboratory automation for dynamically changing experiments.
Util::DigitalOnlyItemDelegate Class Reference

Implements a QItemDelegate which forces e.g. a QTableWidgetItem's content to be boolean (0 or 1). More...

+ Inheritance diagram for Util::DigitalOnlyItemDelegate:

Public Member Functions

 DigitalOnlyItemDelegate (QObject *parent=nullptr)
 
- Public Member Functions inherited from Util::NumericOnlyItemDelegate
 NumericOnlyItemDelegate (QObject *parent=nullptr, double min=std::numeric_limits< double >::lowest(), double max=std::numeric_limits< double >::max(), int precision=-1)
 Constructs a NumericOnlyItemDelegate and sets constraints on the numeric values it considers valid. More...
 
virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 

Detailed Description

Implements a QItemDelegate which forces e.g. a QTableWidgetItem's content to be boolean (0 or 1).

Definition at line 643 of file QtUtil.h.

Constructor & Destructor Documentation

◆ DigitalOnlyItemDelegate()

Util::DigitalOnlyItemDelegate::DigitalOnlyItemDelegate ( QObject *  parent = nullptr)
inline

Definition at line 648 of file QtUtil.h.


The documentation for this class was generated from the following file: