#include <terminalstripmodel.h>
Inherits QStyledItemDelegate.
|
| | 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.
|
◆ TerminalStripModelDelegate()
| TerminalStripModelDelegate::TerminalStripModelDelegate |
( |
QObject * | parent = Q_NULLPTR | ) |
|
◆ createEditor()
| QWidget * TerminalStripModelDelegate::createEditor |
( |
QWidget * | parent, |
|
|
const QStyleOptionViewItem & | option, |
|
|
const QModelIndex & | index ) const |
|
override |
◆ 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
-
◆ setModelData()
| void TerminalStripModelDelegate::setModelData |
( |
QWidget * | editor, |
|
|
QAbstractItemModel * | model, |
|
|
const QModelIndex & | index ) const |
|
override |
The documentation for this class was generated from the following files: