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