Class DeltaListModel
Inherits the following classes: QAbstractListModel
Classes
| Type | Name |
|---|---|
| struct | Delta |
Public Types
| Type | Name |
|---|---|
| enum | ColumnRole |
| enum | Status |
Public Properties
| Type | Name |
|---|---|
| property int | rowCount |
Public Signals
| Type | Name |
|---|---|
| signal void | rowCountChanged |
Public Functions
| Type | Name |
|---|---|
| DeltaListModel () = default |
|
| DeltaListModel (QJsonDocument deltasStatusList) |
|
| bool | allHaveFinalStatus () const Whether all the deltas are in final status. |
| QString | combinedOutput () const Returns a combined output for all deltas, separated by a new line. |
| QVariant | data (const QModelIndex & index, int role) override const Returns the data at given index with given__role . |
| QString | errorString () const Holds the reason why it is invalid. Null string if not invalid. |
| bool | isValid () const Whether the model is valid and can be used. |
| QJsonDocument | json () const Returns the json document used to initialize the model. |
| QHash< int, QByteArray > | roleNames () override const Returns the model role names. |
| int | rowCount (const QModelIndex & parent=QModelIndex()) override const Returns number of rows. |
Public Types Documentation
enum ColumnRole
enum DeltaListModel::ColumnRole {
IdRole,
DeltafileIdRole,
CreatedAtRole,
UpdatedAtRole,
StatusRole,
OutputRole
};
enum Status
enum DeltaListModel::Status {
PendingStatus,
BusyStatus,
AppliedStatus,
ConflictStatus,
NotAppliedStatus,
ErrorStatus,
IgnoredStatus,
UnpermittedStatus
};
Public Properties Documentation
property rowCount [1/2]
int DeltaListModel::rowCount;
Public Signals Documentation
signal rowCountChanged
void DeltaListModel::rowCountChanged;
Public Functions Documentation
function DeltaListModel [1/2]
DeltaListModel::DeltaListModel () = default
function DeltaListModel [2/2]
explicit DeltaListModel::DeltaListModel (
QJsonDocument deltasStatusList
)
function allHaveFinalStatus
Whether all the deltas are in final status.
bool DeltaListModel::allHaveFinalStatus () const
function combinedOutput
Returns a combined output for all deltas, separated by a new line.
QString DeltaListModel::combinedOutput () const
function data
Returns the data at given index with given__role .
QVariant DeltaListModel::data (
const QModelIndex & index,
int role
) override const
function errorString
Holds the reason why it is invalid. Null string if not invalid.
QString DeltaListModel::errorString () const
function isValid
Whether the model is valid and can be used.
bool DeltaListModel::isValid () const
function json
Returns the json document used to initialize the model.
QJsonDocument DeltaListModel::json () const
function roleNames
Returns the model role names.
QHash< int, QByteArray > DeltaListModel::roleNames () override const
function rowCount [2/2]
Returns number of rows.
int DeltaListModel::rowCount (
const QModelIndex & parent=QModelIndex()
) override const
The documentation for this class was generated from the following file src/core/qfieldcloud/deltalistmodel.h