Class QAccelPlot::InspectionRowModel¶
ClassList > QAccelPlot > InspectionRowModel
List model with one stable row per inspected series. More...
#include <InspectionRowModel.hpp>
Inherits the following classes: QAbstractListModel
Inheritance diagram¶
flowchart TB
classQAccelPlot_1_1InspectionRowModel["QAccelPlot::InspectionRowModel"]
external_base_classQAccelPlot_1_1InspectionRowModel_1["QAbstractListModel"]
external_base_classQAccelPlot_1_1InspectionRowModel_1 --> classQAccelPlot_1_1InspectionRowModel
Public Types¶
| Type | Name |
|---|---|
| enum | Role Data roles; the QML role names are listed in the class description. |
Public Properties¶
| Type | Name |
|---|---|
| property QML_ANONYMOUSint | count Number of rows. |
Public Signals¶
| Type | Name |
|---|---|
| signal void | countChanged Emitted when the count property changes. |
Public Functions¶
| Type | Name |
|---|---|
| InspectionRowModel (QObject * parent=nullptr) Constructs an empty model. |
|
| int | count () const Returns the number of rows. |
| QVariant | data (const QModelIndex & index, int role) override const Returns the value of role for the row at__index . |
| Q_INVOKABLE QVariantMap | get (int row) const Returns every role of row keyed by role name, or an empty map when out of range. |
| void | retainSeries (const QList< PlotSeries * > & series) Removes rows whose series is destroyed or not in series . |
| QHash< int, QByteArray > | roleNames () override const Returns the QML role names. |
| int | rowCount (const QModelIndex & parent={}) override const Returns the number of rows. |
| const QList< InspectionRow > & | rows () const Returns the current rows. |
| void | setRows (const QList< InspectionRow > & rows) Replaces the rows, updating them in place when the series are unchanged. |
Detailed Description¶
Provided by PlotInspector::model and SelectionTool::model. Rows are added and removed only when the set of inspected series changes; cursor movement updates rows in place, so delegates are reused.
Roles: series, seriesName, seriesColor, valid, dataPointStatus, dataPointIndex, dataPointX, dataPointY, dataPointValue, xText, yText, valueText, pixelX, pixelY, distance, interpolated, hasSummary, summaryStatus, summaryCount, minimum, maximum, mean, standardDeviation, minimumIndex, maximumIndex, minimumText, maximumText, and meanText.
pixelX and pixelY are in plot-local logical pixels, unlike the series-local InspectionDataPoint::pixelX and InspectionDataPoint::pixelY.
Public Types Documentation¶
enum Role¶
Data roles; the QML role names are listed in the class description.
enum QAccelPlot::InspectionRowModel::Role {
SeriesRole = Qt::UserRole + 1,
SeriesNameRole,
SeriesColorRole,
ValidRole,
DataPointStatusRole,
DataPointIndexRole,
DataPointXRole,
DataPointYRole,
DataPointValueRole,
XTextRole,
YTextRole,
ValueTextRole,
PixelXRole,
PixelYRole,
DistanceRole,
InterpolatedRole,
HasSummaryRole,
SummaryStatusRole,
SummaryCountRole,
MinimumRole,
MaximumRole,
MeanRole,
StandardDeviationRole,
MinimumIndexRole,
MaximumIndexRole,
MinimumTextRole,
MaximumTextRole,
MeanTextRole
};
Public Properties Documentation¶
property count¶
Number of rows.
Public Signals Documentation¶
signal countChanged¶
Emitted when the count property changes.
Public Functions Documentation¶
function InspectionRowModel¶
Constructs an empty model.
function count¶
Returns the number of rows.
function data¶
Returns the value of role for the row at__index .
QVariant QAccelPlot::InspectionRowModel::data (
const QModelIndex & index,
int role
) override const
function get¶
Returns every role of row keyed by role name, or an empty map when out of range.
function retainSeries¶
Removes rows whose series is destroyed or not in series .
function roleNames¶
Returns the QML role names.
function rowCount¶
Returns the number of rows.
function rows¶
Returns the current rows.
function setRows¶
Replaces the rows, updating them in place when the series are unchanged.
The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/inspection/InspectionRowModel.hpp