WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. | Zuble QML Types | Zuble C++ Classes | Zuble Overview |
Zuble
0.1
Zuble Framework C++/QML extension API
|
A data model containing a list of log record links. This is used for displaying a ZLogMap object. More...
#include <ZLogReclinkModel.h>
Public Slots | |
QVariant | getData (int index, int role) |
QVariantMap | roleMap () const |
QVariant | getValue (int role, int row) |
Obtains the value of the specified data cell. More... | |
QVariant | getValue (int role, int row, int column) |
Obtains the value of the specified data cell. More... | |
void | invalidateModel () |
Sends begin and end reset signals to the model forcing views to refetch data from the entire model. More... | |
Public Member Functions | |
ZLogReclinkModel (QSharedPointer< ZblLogReclinkData > data, QObject *parent=0) | |
virtual | ~ZLogReclinkModel () |
virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
Obtains the embedded data model. More... | |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
QAbstractTableModel override. More... | |
virtual QHash< int, QByteArray > | roleNames () const |
QAbstractTableModel override. More... | |
Static Public Member Functions | |
static void | registerLoggedObject () |
Private Attributes | |
QSharedPointer< ZblLogReclinkData > | m_d |
Static Private Attributes | |
static bool | m_initialized = false |
Used to optimize logging initializer. More... | |
A data model containing a list of log record links. This is used for displaying a ZLogMap object.
ZLogReclinkModel encapsulates a data model representing the log record links in a ZLogMap object. ZLogMap objects contain compressed log links where consecutive log records are represented as a single data item to reduce the size of ZLogMap objects in memory. ZLogReclinkModel expands the compressed links from ZLogMap into one item per log record for display purposes.
Each ZLogReclinkModel object is synchronized with its source search or bookmark so that changes to the source are propagated to the data model automatically. The data model encapsulated by ZLogReclinkModel objects is implicitly shared. When all references to the shared, synchronized data model are gone it is automatically destroyed.
Definition at line 31 of file ZLogReclinkModel.h.
|
explicit |
Definition at line 14 of file ZLogReclinkModel.cpp.
|
virtual |
Definition at line 24 of file ZLogReclinkModel.cpp.
|
virtual |
Obtains the embedded data model.
Definition at line 93 of file ZLogReclinkModel.cpp.
Referenced by ZLogReclinkModel().
|
slot |
Definition at line 135 of file ZLogReclinkModel.cpp.
|
slot |
Obtains the value of the specified data cell.
role | the role whose value to return |
row | the cell's zero-based row number |
Definition at line 182 of file ZLogReclinkModel.cpp.
Referenced by getValue().
|
slot |
Obtains the value of the specified data cell.
This method is provided for compatibility with ZTableModel. It ignores the third dimension parameter 'column'.
role | the role whose value to return |
row | the cell's zero-based row number |
column | this parameter is ignored |
Definition at line 210 of file ZLogReclinkModel.cpp.
|
slot |
Sends begin and end reset signals to the model forcing views to refetch data from the entire model.
Definition at line 240 of file ZLogReclinkModel.cpp.
|
static |
Definition at line 31 of file ZLogReclinkModel.cpp.
Referenced by ZLogReclinkModel().
|
slot |
Definition at line 148 of file ZLogReclinkModel.cpp.
|
virtual |
QAbstractTableModel override.
Definition at line 124 of file ZLogReclinkModel.cpp.
Referenced by roleMap().
|
virtual |
QAbstractTableModel override.
Definition at line 74 of file ZLogReclinkModel.cpp.
Referenced by data().
|
private |
Definition at line 142 of file ZLogReclinkModel.h.
Referenced by data(), getData(), getValue(), roleNames(), rowCount(), and ZLogReclinkModel().
|
staticprivate |
Used to optimize logging initializer.
Definition at line 148 of file ZLogReclinkModel.h.
Referenced by registerLoggedObject().
Zuble documentation copyright © 2019 Bob Dinitto. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Zuble is a derivative work of Qt version 5. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.