Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MantidQt::MantidWidgets::NumericInputDelegate Class Reference

#include <TableWidgetValidators.h>

Inheritance diagram for MantidQt::MantidWidgets::NumericInputDelegate:

Public Member Functions

QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const override
 
 NumericInputDelegate (QWidget *parent=nullptr, int=DEFAULT_NUMERICAL_PRECISION)
 
void setEditorData (QWidget *editor, const QModelIndex &index) const override
 

Private Attributes

int m_precision
 

Detailed Description

Definition at line 35 of file TableWidgetValidators.h.

Constructor & Destructor Documentation

◆ NumericInputDelegate()

MantidQt::MantidWidgets::NumericInputDelegate::NumericInputDelegate ( QWidget *  parent = nullptr,
int  precision = DEFAULT_NUMERICAL_PRECISION 
)

Definition at line 62 of file TableWidgetValidators.cpp.

Member Function Documentation

◆ createEditor()

QWidget * MantidQt::MantidWidgets::NumericInputDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  ,
const QModelIndex &   
) const
override

Definition at line 65 of file TableWidgetValidators.cpp.

References m_precision.

◆ setEditorData()

void MantidQt::MantidWidgets::NumericInputDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
override

Member Data Documentation

◆ m_precision

int MantidQt::MantidWidgets::NumericInputDelegate::m_precision
private

Definition at line 42 of file TableWidgetValidators.h.

Referenced by createEditor(), and setEditorData().


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