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

HintingLineEditFactory : A QStyledItemDelegate that produces HintingLineEdits using the given hint strategy. More...

#include <HintingLineEditFactory.h>

Inheritance diagram for MantidQt::MantidWidgets::HintingLineEditFactory:

Public Member Functions

QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
 HintingLineEditFactory (QAbstractItemDelegate *cellPainterDelegate, std::unique_ptr< HintStrategy > hintStrategy, QObject *parent=nullptr)
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 

Protected Attributes

QAbstractItemDelegate * m_cellPainterDelegate
 
std::unique_ptr< HintStrategym_strategy
 

Detailed Description

HintingLineEditFactory : A QStyledItemDelegate that produces HintingLineEdits using the given hint strategy.

Definition at line 22 of file HintingLineEditFactory.h.

Constructor & Destructor Documentation

◆ HintingLineEditFactory()

MantidQt::MantidWidgets::HintingLineEditFactory::HintingLineEditFactory ( QAbstractItemDelegate *  cellPainterDelegate,
std::unique_ptr< HintStrategy hintStrategy,
QObject *  parent = nullptr 
)
inline

Definition at line 24 of file HintingLineEditFactory.h.

Member Function Documentation

◆ createEditor()

QWidget * MantidQt::MantidWidgets::HintingLineEditFactory::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
inlineoverride

Definition at line 28 of file HintingLineEditFactory.h.

References index, and m_strategy.

◆ paint()

void MantidQt::MantidWidgets::HintingLineEditFactory::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
inlineoverride

Definition at line 38 of file HintingLineEditFactory.h.

References index, and m_cellPainterDelegate.

Member Data Documentation

◆ m_cellPainterDelegate

QAbstractItemDelegate* MantidQt::MantidWidgets::HintingLineEditFactory::m_cellPainterDelegate
protected

Definition at line 44 of file HintingLineEditFactory.h.

Referenced by paint().

◆ m_strategy

std::unique_ptr<HintStrategy> MantidQt::MantidWidgets::HintingLineEditFactory::m_strategy
protected

Definition at line 43 of file HintingLineEditFactory.h.

Referenced by createEditor().


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