| 186 | } |
| 187 | |
| 188 | QVariant PeerTableModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 189 | { |
| 190 | if(orientation == Qt::Horizontal) |
| 191 | { |
| 192 | if(role == Qt::DisplayRole && section < columns.size()) |
| 193 | { |
| 194 | return columns[section]; |
| 195 | } |
| 196 | } |
| 197 | return QVariant(); |
| 198 | } |
| 199 | |
| 200 | Qt::ItemFlags PeerTableModel::flags(const QModelIndex &index) const |
| 201 | { |