![]() |
LibrePCB Developers Documentation
|
The PartListModel class. More...
#include <partlistmodel.h>
Inherits QObject, and Model< ui::PartData >.
Collaboration diagram for PartListModel:Public Member Functions | |
| PartListModel (const PartListModel &other)=delete | |
| PartListModel (QObject *parent=nullptr) noexcept | |
| ~PartListModel () noexcept | |
| void | setDefaultManufacturer (const SimpleString &mfr) noexcept |
| void | setReferences (PartList *list, UndoStack *stack) noexcept |
| void | apply () |
| std::size_t | row_count () const override |
| std::optional< ui::PartData > | row_data (std::size_t i) const override |
| void | set_row_data (std::size_t i, const ui::PartData &data) noexcept override |
| PartListModel & | operator= (const PartListModel &rhs)=delete |
Private Member Functions | |
| void | trigger (int index, std::shared_ptr< Part > obj, ui::PartAction a) noexcept |
| void | listEdited (const PartList &list, int index, const std::shared_ptr< const Part > &item, PartList::Event event) noexcept |
| void | execCmd (UndoCommand *cmd) |
Private Attributes | |
| PartList * | mList |
| QPointer< UndoStack > | mUndoStack |
| std::shared_ptr< Part > | mNewPart |
| QList< std::shared_ptr< PartEditor > > | mItems |
| PartList::OnEditedSlot | mOnEditedSlot |
The PartListModel class.
|
delete |
|
explicitnoexcept |
|
noexcept |
|
noexcept |
| void apply | ( | ) |
Here is the call graph for this function:
|
override |
|
override |
|
overridenoexcept |
|
delete |
|
privatenoexcept |
Here is the call graph for this function:
|
privatenoexcept |
|
private |
Here is the caller graph for this function:
|
private |
|
private |
|
private |
|
private |
|
private |