| 27 | } |
| 28 | |
| 29 | QVariant MacroStepTableModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 30 | { |
| 31 | if (role == Qt::DisplayRole) { |
| 32 | if (orientation == Qt::Horizontal) { |
| 33 | if (section == 0) |
| 34 | return tr("Name"); |
| 35 | else if (section == 1) |
| 36 | return tr("Text"); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | return QVariant(); |
| 41 | } |
| 42 | |
| 43 | int MacroStepTableModel::rowCount(const QModelIndex &parent) const |
| 44 | { |
nothing calls this directly
no outgoing calls
no test coverage detected