The PathModel class implements QAbstractTableModel for librepcb::Path.
More...
#include <pathmodel.h>
Inherits QAbstractTableModel.
|
| | PathModel ()=delete |
| |
| | PathModel (const PathModel &other)=delete |
| |
| | PathModel (QObject *parent=nullptr) noexcept |
| |
| | ~PathModel () noexcept |
| |
| void | setPath (const Path &path) noexcept |
| |
| const Path & | getPath () const noexcept |
| |
| void | add (const QPersistentModelIndex &itemIndex) noexcept |
| |
| void | copy (const QPersistentModelIndex &itemIndex) noexcept |
| |
| void | remove (const QPersistentModelIndex &itemIndex) noexcept |
| |
| void | moveUp (const QPersistentModelIndex &itemIndex) noexcept |
| |
| void | moveDown (const QPersistentModelIndex &itemIndex) noexcept |
| |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
| |
| PathModel & | operator= (const PathModel &rhs) noexcept |
| |
The PathModel class implements QAbstractTableModel for librepcb::Path.
◆ Column
| Enumerator |
|---|
| COLUMN_X | |
| COLUMN_Y | |
| COLUMN_ANGLE | |
| COLUMN_ACTIONS | |
| _COLUMN_COUNT | |
◆ PathModel() [1/3]
◆ PathModel() [2/3]
◆ PathModel() [3/3]
◆ ~PathModel()
◆ setPath()
| void setPath |
( |
const Path & |
path | ) |
|
|
noexcept |
◆ getPath()
| const Path & getPath |
( |
| ) |
const |
|
inlinenoexcept |
◆ add()
| void add |
( |
const QPersistentModelIndex & |
itemIndex | ) |
|
|
noexcept |
◆ copy()
| void copy |
( |
const QPersistentModelIndex & |
itemIndex | ) |
|
|
noexcept |
◆ remove()
| void remove |
( |
const QPersistentModelIndex & |
itemIndex | ) |
|
|
noexcept |
◆ moveUp()
| void moveUp |
( |
const QPersistentModelIndex & |
itemIndex | ) |
|
|
noexcept |
◆ moveDown()
| void moveDown |
( |
const QPersistentModelIndex & |
itemIndex | ) |
|
|
noexcept |
◆ rowCount()
| int rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ columnCount()
| int columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ data()
| QVariant data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ headerData()
| QVariant headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ flags()
| Qt::ItemFlags flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ setData()
| bool setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
override |
◆ operator=()
◆ pathChanged
| void pathChanged |
( |
const Path & |
path | ) |
|
|
signal |
◆ mPath
◆ mNewVertex
The documentation for this class was generated from the following files: