![]() |
LibrePCB Developers Documentation
|
The PartListModel class. More...
#include <partlistmodel.h>
Inherits QAbstractTableModel.
Collaboration diagram for PartListModel:Public Types | |
| enum | Column |
Public Member Functions | |
| PartListModel ()=delete | |
| PartListModel (const PartListModel &other)=delete | |
| PartListModel (QObject *parent=nullptr) noexcept | |
| ~PartListModel () noexcept | |
| void | setInitialManufacturer (const SimpleString &value) noexcept |
| void | setPartList (PartList *list) noexcept |
| void | setUndoStack (UndoStack *stack) 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 |
| PartListModel & | operator= (const PartListModel &rhs) noexcept |
Private Member Functions | |
| void | partListEdited (const PartList &list, int index, const std::shared_ptr< const Part > &part, PartList::Event event) noexcept |
| void | execCmd (UndoCommand *cmd) |
Private Attributes | |
| PartList * | mPartList |
| UndoStack * | mUndoStack |
| QString | mNewMpn |
| QString | mNewManufacturer |
| PartList::OnEditedSlot | mOnEditedSlot |
The PartListModel class.
| enum Column |
|
delete |
|
delete |
|
explicitnoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Here is the call graph for this function:
|
override |
|
override |
Here is the call graph for this function:
|
override |
Here is the call graph for this function:
|
override |
|
override |
Here is the call graph for this function:
|
noexcept |
|
privatenoexcept |
|
private |
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
|
private |
|
private |
|
private |