| 15 | { |
| 16 | return parent.isValid() ? 0 : _logList.count(); |
| 17 | } |
| 18 | |
| 19 | QVariant T_LogModel::data(const QModelIndex& index, int role) const |
| 20 | { |
| 21 | if (index.isValid() && index.model() == this && index.row() >= 0 && index.row() < _logList.size() && role == Qt::DisplayRole) |
| 22 | { |
| 23 | return _logList[index.row()]; |
| 24 | } |
| 25 | return QVariant(); |
| 26 | } |
| 27 |
no outgoing calls
no test coverage detected