![]() |
LibrePCB Developers Documentation
|
The AttributeListModel class. More...
#include <attributelistmodel.h>
Inherits QAbstractTableModel.
Collaboration diagram for AttributeListModel:Public Types | |
| enum | Column |
Public Member Functions | |
| AttributeListModel ()=delete | |
| AttributeListModel (const AttributeListModel &other)=delete | |
| AttributeListModel (QObject *parent=nullptr) noexcept | |
| ~AttributeListModel () noexcept | |
| void | setAttributeList (AttributeList *list) noexcept |
| void | setUndoStack (UndoStack *stack) noexcept |
| void | add (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 |
| AttributeListModel & | operator= (const AttributeListModel &rhs) noexcept |
Private Member Functions | |
| void | attributeListEdited (const AttributeList &list, int index, const std::shared_ptr< const Attribute > &attribute, AttributeList::Event event) noexcept |
| void | execCmd (UndoCommand *cmd) |
| AttributeKey | validateKeyOrThrow (const QString &key) const |
Static Private Member Functions | |
| static ComboBoxDelegate::Items | buildUnitComboBoxData (const AttributeType &type) noexcept |
Private Attributes | |
| AttributeList * | mAttributeList |
| UndoStack * | mUndoStack |
| ComboBoxDelegate::Items | mTypeComboBoxItems |
| QString | mNewKey |
| const AttributeType * | mNewType |
| QString | mNewValue |
| const AttributeUnit * | mNewUnit |
| AttributeList::OnEditedSlot | mOnEditedSlot |
The AttributeListModel class.
| enum Column |
|
delete |
|
delete |
|
explicitnoexcept |
Here is the call graph for this function:
|
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:
|
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 |
Here is the call graph for this function:
|
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 |
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |