|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <ParameterEditorController.h>
Inheritance diagram for ParameterTableModel:
Collaboration diagram for ParameterTableModel:Public Types | |
| enum | { FactRole = Qt::UserRole + 1 } |
| enum | { NameColumn = 0 , ValueColumn , DescriptionColumn } |
| typedef QVector< QVariant > | ColumnData |
Signals | |
| void | rowCountChanged (int count) |
Public Member Functions | |
| ParameterTableModel (QObject *parent=nullptr) | |
| ~ParameterTableModel () override | |
| int rowCount READ rowCount NOTIFY rowCountChanged void | append (Fact *fact) |
| void | insert (int row, Fact *fact) |
| void | clear () |
| void | beginReset () |
| Supports nesting - only outermost call has effect. | |
| void | endReset () |
| Supports nesting - only outermost call has effect. | |
| Fact * | factAt (int row) const |
| 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 |
| QHash< int, QByteArray > | roleNames (void) const override |
Definition at line 15 of file ParameterEditorController.h.
| typedef QVector<QVariant> ParameterTableModel::ColumnData |
Definition at line 23 of file ParameterEditorController.h.
| anonymous enum |
| Enumerator | |
|---|---|
| FactRole | |
Definition at line 25 of file ParameterEditorController.h.
| anonymous enum |
| Enumerator | |
|---|---|
| NameColumn | |
| ValueColumn | |
| DescriptionColumn | |
Definition at line 29 of file ParameterEditorController.h.
|
explicit |
Definition at line 10 of file ParameterEditorController.cc.
|
override |
Definition at line 16 of file ParameterEditorController.cc.
| void ParameterTableModel::append | ( | Fact * | fact | ) |
Definition at line 69 of file ParameterEditorController.cc.
References insert(), and rowCount().
| void ParameterTableModel::beginReset | ( | ) |
Supports nesting - only outermost call has effect.
Definition at line 96 of file ParameterEditorController.cc.
Referenced by clear().
| void ParameterTableModel::clear | ( | ) |
Definition at line 62 of file ParameterEditorController.cc.
References beginReset(), and endReset().
|
override |
Definition at line 26 of file ParameterEditorController.cc.
|
override |
Definition at line 31 of file ParameterEditorController.cc.
References FactRole, and ValueColumn.
| void ParameterTableModel::endReset | ( | ) |
Supports nesting - only outermost call has effect.
Definition at line 105 of file ParameterEditorController.cc.
References rowCount(), and rowCountChanged().
Referenced by clear().
| Fact * ParameterTableModel::factAt | ( | int | row | ) | const |
Definition at line 118 of file ParameterEditorController.cc.
References ValueColumn.
| void ParameterTableModel::insert | ( | int | row, |
| Fact * | fact | ||
| ) |
Definition at line 74 of file ParameterEditorController.cc.
References DescriptionColumn, NameColumn, rowCount(), rowCountChanged(), and ValueColumn.
Referenced by append().
|
override |
Definition at line 54 of file ParameterEditorController.cc.
References FactRole.
|
override |
Definition at line 21 of file ParameterEditorController.cc.
Referenced by append(), endReset(), and insert().
|
signal |
Referenced by endReset(), and insert().