| 204 | } |
| 205 | |
| 206 | QVariant |
| 207 | MonitorDataModel::headerData( |
| 208 | int section, |
| 209 | Qt::Orientation /* orientation */, |
| 210 | int role |
| 211 | ) const |
| 212 | { |
| 213 | if( role == Qt::DisplayRole) { |
| 214 | return this->root_->column( section); |
| 215 | } |
| 216 | |
| 217 | return QVariant(); |
| 218 | } |
| 219 | |
| 220 | int |
| 221 | MonitorDataModel::rowCount( const QModelIndex& parent) const |