| 131 | } |
| 132 | |
| 133 | QVariant BanTableModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 134 | { |
| 135 | if(orientation == Qt::Horizontal) |
| 136 | { |
| 137 | if(role == Qt::DisplayRole && section < columns.size()) |
| 138 | { |
| 139 | return columns[section]; |
| 140 | } |
| 141 | } |
| 142 | return QVariant(); |
| 143 | } |
| 144 | |
| 145 | Qt::ItemFlags BanTableModel::flags(const QModelIndex &index) const |
| 146 | { |