QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TerminalStripModelDelegate Class Reference

#include <terminalstripmodel.h>

Inherits QStyledItemDelegate.

Collaboration diagram for TerminalStripModelDelegate:
Collaboration graph

Public Member Functions

 TerminalStripModelDelegate (QObject *parent=Q_NULLPTR)
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 TerminalStripModelDelegate::paint By default on a QTableView, Qt draw pixmap in cell with a little margin at left. Override the function to draw the pixmap of bridge without the margin at left.
 

Constructor & Destructor Documentation

◆ TerminalStripModelDelegate()

TerminalStripModelDelegate::TerminalStripModelDelegate ( QObject *  parent = Q_NULLPTR)

Member Function Documentation

◆ createEditor()

QWidget * TerminalStripModelDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override
Here is the call graph for this function:

◆ paint()

void TerminalStripModelDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

TerminalStripModelDelegate::paint By default on a QTableView, Qt draw pixmap in cell with a little margin at left. Override the function to draw the pixmap of bridge without the margin at left.

Parameters
painter
option
index

◆ setModelData()

void TerminalStripModelDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
override

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