The PackageModelListModel class.
More...
#include <packagemodellistmodel.h>
Inherits QAbstractTableModel.
◆ Column
| Enumerator |
|---|
| COLUMN_ENABLED | |
| COLUMN_NAME | |
| COLUMN_ACTIONS | |
| _COLUMN_COUNT | |
◆ PackageModelListModel() [1/3]
◆ PackageModelListModel() [2/3]
◆ PackageModelListModel() [3/3]
◆ ~PackageModelListModel()
◆ setPackage()
| void setPackage |
( |
Package * |
package | ) |
|
|
noexcept |
◆ setFootprint()
| void setFootprint |
( |
std::shared_ptr< Footprint > |
footprint | ) |
|
|
noexcept |
◆ setUndoStack()
◆ add()
| void add |
( |
const QPersistentModelIndex & |
itemIndex | ) |
|
|
noexcept |
◆ remove()
| void remove |
( |
const QPersistentModelIndex & |
itemIndex | ) |
|
|
noexcept |
◆ edit()
| void edit |
( |
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=()
◆ newModelAdded
| void newModelAdded |
( |
int |
index | ) |
|
|
signal |
◆ modelListEdited()
◆ footprintEdited()
◆ execCmd()
◆ validateNameOrThrow()
| ElementName validateNameOrThrow |
( |
const QString & |
name | ) |
const |
|
private |
◆ chooseStepFile()
| bool chooseStepFile |
( |
QByteArray & |
content, |
|
|
FilePath * |
selectedFile = nullptr |
|
) |
| |
|
private |
◆ mPackage
◆ mFootprint
◆ mUndoStack
◆ mNewEnabled
◆ mNewName
◆ mOnEditedSlot
◆ mOnFootprintEditedSlot
The documentation for this class was generated from the following files: