![]() |
LibrePCB Developers Documentation
|
The AttributeListModel class. More...
#include <attributelistmodel.h>
Inherits QObject, and Model< ui::AttributeData >.
Collaboration diagram for AttributeListModel:Public Member Functions | |
| AttributeListModel (const AttributeListModel &other)=delete | |
| AttributeListModel (QObject *parent=nullptr) noexcept | |
| ~AttributeListModel () noexcept | |
| void | setReferences (AttributeList *list, UndoStack *stack) noexcept |
| void | apply () |
| std::size_t | row_count () const override |
| std::optional< ui::AttributeData > | row_data (std::size_t i) const override |
| void | set_row_data (std::size_t i, const ui::AttributeData &data) noexcept override |
| AttributeListModel & | operator= (const AttributeListModel &rhs)=delete |
Private Member Functions | |
| ui::AttributeData | createItem (const Attribute &obj) noexcept |
| void | trigger (int index, std::shared_ptr< Attribute > obj, ui::AttributeAction a) noexcept |
| void | listEdited (const AttributeList &list, int index, const std::shared_ptr< const Attribute > &item, AttributeList::Event event) noexcept |
| void | execCmd (UndoCommand *cmd) |
| AttributeKey | validateKeyOrThrow (const QString &name) const |
Static Private Member Functions | |
| static ui::AttributeData | createLastItem () noexcept |
Private Attributes | |
| AttributeList * | mList |
| QPointer< UndoStack > | mUndoStack |
| QList< ui::AttributeData > | mItems |
| AttributeList::OnEditedSlot | mOnEditedSlot |
The AttributeListModel class.
|
delete |
|
explicitnoexcept |
|
noexcept |
|
noexcept |
| void apply | ( | ) |
Here is the call graph for this function:
|
override |
|
override |
|
overridenoexcept |
Here is the call graph for this function:
|
delete |
|
privatenoexcept |
Here is the call graph for this function:
|
staticprivatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
|
privatenoexcept |
|
private |
Here is the caller graph for this function:
|
private |
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
|
private |
|
private |