![]() |
RobWorkProject
23.9.11-
|
Model of a simulator log for Qt Tree view. More...
#include <SimulatorLogModel.hpp>
Inherits QAbstractItemModel.
Public Member Functions | |
| SimulatorLogModel (QObject *parent) | |
| Construct new item model for the log tree. More... | |
| virtual | ~SimulatorLogModel () |
| Destructor. | |
| void | setRoot (rw::core::Ptr< const rwsim::log::SimulatorLog > root) |
| Set the log root. More... | |
| void | compare (rw::core::Ptr< const rwsim::log::SimulatorLog > info) |
| Compare with a different log. More... | |
| const rwsim::log::SimulatorLog * | nodeFromIndex (const QModelIndex &index) const |
| Find a log entity from index. More... | |
Implementation of Qt interface. | |
Implementation of Qt functions. See http://doc.qt.io/qt-4.8/qabstractitemmodel.html . | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| QModelIndex | parent (const QModelIndex &child) const |
| void | update () |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
Model of a simulator log for Qt Tree view.
| SimulatorLogModel | ( | QObject * | parent | ) |
Construct new item model for the log tree.
| parent | [in] the parent Qt widget. Ownership is shared by the caller and the parent widget. |
| void compare | ( | rw::core::Ptr< const rwsim::log::SimulatorLog > | info | ) |
Compare with a different log.
| info | [in] the other simulation log. |
| const rwsim::log::SimulatorLog* nodeFromIndex | ( | const QModelIndex & | index | ) | const |
Find a log entity from index.
| index | [in] the index. |
| void setRoot | ( | rw::core::Ptr< const rwsim::log::SimulatorLog > | root | ) |
Set the log root.
| root | [in] the log root. |